From 75ecefd3a143bf444007fdce739e448aac183dba Mon Sep 17 00:00:00 2001 From: Liangliang Lu Date: Thu, 28 Jun 2018 10:47:42 +0800 Subject: [PATCH] usb: gadget: ffs: Remove IPC context create failure log In the case CONFIG_IPC_LOGGING is not defined, ipc_log_context_create() return NULL. Remove error log about IPC context create failure to avoid confuse. Change-Id: Ia03528400f3bc9719de2676820f5a676281181b0 Signed-off-by: Liangliang Lu --- drivers/usb/gadget/function/f_fs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 9edc01692142..1a8dfcaa1bf7 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -4295,11 +4295,8 @@ DECLARE_USB_FUNCTION_INIT(ffs, ffs_alloc_inst, ffs_alloc); static int ffs_init(void) { ffs_ipc_log = ipc_log_context_create(NUM_PAGES, "f_fs", 0); - if (IS_ERR_OR_NULL(ffs_ipc_log)) { + if (IS_ERR_OR_NULL(ffs_ipc_log)) ffs_ipc_log = NULL; - pr_err("%s: Create IPC log context failure\n", - __func__); - } return 0; }