usb:gadget:Remove redundant #includes for USB composite gadget and its functions
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 17 Sep 2013 13:58:22 +0000 (15:58 +0200)
committerChanho Park <chanho61.park@samsung.com>
Wed, 22 Jul 2015 12:00:43 +0000 (21:00 +0900)
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>
common/cmd_dfu.c
common/cmd_usb_mass_storage.c
drivers/usb/gadget/g_dnl.c
include/linux/usb/gadget.h

index a68003002e794ada09e2a26e56224357a3583902..a6505ec72191438ae30af6ba5e2a3383e6d1b016 100644 (file)
  */
 
 #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[])
index 87a5f2f3ad2e0ea5062024b8d28b282ca45151b9..e05702076c9f1658bf77a5dd06f62c40c7a77635 100644 (file)
@@ -18,7 +18,6 @@
  * MA 02111-1307 USA
  */
 
-#include <errno.h>
 #include <common.h>
 #include <command.h>
 #include <g_dnl.h>
index 5acb0b815dc03997f077721f167cf1dc1e7071ef..65e616626a59aaddfa44c150bfe23f12fbe0f16d 100644 (file)
@@ -19,7 +19,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <errno.h>
 #include <common.h>
 #include <malloc.h>
 
index eba865ea096ea164c2a0731d581dccec015c32c0..41713d4b23428d6fd5a83c1ea411ab82b748f94d 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef __LINUX_USB_GADGET_H
 #define __LINUX_USB_GADGET_H
 
+#include <errno.h>
 #include <linux/list.h>
 
 struct usb_ep;