diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2013-09-17 15:58:22 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-09-24 17:51:36 +0200 |
commit | 69d6cbe748ae13e6b728d2c28616a8c54b07f9c2 (patch) | |
tree | a9f6570d4a0fbe92e45906f9242aa1f4f47528c1 /common | |
parent | ba4e95c9f0e18ddeff55ef1b94be650d7b653d3f (diff) |
usb:gadget:Remove redundant #includes for USB composite gadget and its functions
Only the <linux/usb/gadget.h> requires error.h include. Hence, several
includes of error.h at USB gadget functions are not needed.
Moreover unnecessary malloc.h includes were also removed.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_dfu.c | 3 | ||||
-rw-r--r-- | common/cmd_usb_mass_storage.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index d3658cf7ee9..7ce92cec87f 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -9,10 +9,7 @@ */ #include <common.h> -#include <command.h> -#include <malloc.h> #include <dfu.h> -#include <asm/errno.h> #include <g_dnl.h> static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c index 33a47150055..ccf7195946e 100644 --- a/common/cmd_usb_mass_storage.c +++ b/common/cmd_usb_mass_storage.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include <errno.h> #include <common.h> #include <command.h> #include <g_dnl.h> |