1. 31 10月, 2012 1 次提交
    • J
      USB: ums_realtek: fix build warning · 806df3ac
      Jingoo Han 提交于
      When rts51x_read_status() returns USB_STOR_TRANSPORT_ERROR,
      an error happens. This patch fixes build warning as below:
      
      drivers/usb/storage/realtek_cr.c: In function 'init_realtek_cr':
      drivers/usb/storage/realtek_cr.c:476:33: warning: 'buf[15]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[15]' was declared here
      drivers/usb/storage/realtek_cr.c:475:33: warning: 'buf[14]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[14]' was declared here
      drivers/usb/storage/realtek_cr.c:474:50: warning: 'buf[13]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[13]' was declared here
      drivers/usb/storage/realtek_cr.c:472:30: warning: 'buf[12]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[12]' was declared here
      drivers/usb/storage/realtek_cr.c:471:31: warning: 'buf[11]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[11]' was declared here
      drivers/usb/storage/realtek_cr.c:470:31: warning: 'buf[10]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[10]' was declared here
      drivers/usb/storage/realtek_cr.c:469:30: warning: 'buf[9]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[9]' was declared here
      drivers/usb/storage/realtek_cr.c:468:27: warning: 'buf[8]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[8]' was declared here
      drivers/usb/storage/realtek_cr.c:468:43: warning: 'buf[7]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[7]' was declared here
      drivers/usb/storage/realtek_cr.c:467:30: warning: 'buf[6]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[6]' was declared here
      drivers/usb/storage/realtek_cr.c:466:30: warning: 'buf[5]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[5]' was declared here
      drivers/usb/storage/realtek_cr.c:465:28: warning: 'buf[4]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[4]' was declared here
      drivers/usb/storage/realtek_cr.c:464:24: warning: 'buf[3]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[3]' was declared here
      drivers/usb/storage/realtek_cr.c:464:40: warning: 'buf[2]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[2]' was declared here
      drivers/usb/storage/realtek_cr.c:463:24: warning: 'buf[1]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[1]' was declared here
      drivers/usb/storage/realtek_cr.c:463:40: warning: 'buf[0]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[0]' was declared here
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      806df3ac
  2. 06 9月, 2012 1 次提交
  3. 29 2月, 2012 1 次提交
  4. 25 2月, 2012 1 次提交
  5. 27 1月, 2012 1 次提交
  6. 25 1月, 2012 1 次提交
  7. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/usb/* to use module_usb_driver() · 65db4305
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/usb/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Simon Arlott <cxacru@fire.lp0.eu>
      Cc: Duncan Sands <duncan.sands@free.fr>
      Cc: Matthieu CASTET <castet.matthieu@free.fr>
      Cc: Stanislaw Gruszka <stf_xl@wp.pl>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Cc: Oliver Neukum <oliver@neukum.name>
      Cc: Juergen Stuber <starblue@users.sourceforge.net>
      Cc: Cesar Miquel <miquel@df.uba.ar>
      Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Cc: Matthew Wilcox <willy@linux.intel.com>
      Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: Michael Hund <mhund@ld-didactic.de>
      Cc: Zack Parsons <k3bacon@gmail.com>
      Cc: Melchior FRANZ <mfranz@aon.at>
      Cc: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
      Cc: Dan Carpenter <error27@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      65db4305
  8. 16 11月, 2011 2 次提交
  9. 18 9月, 2011 1 次提交
  10. 15 9月, 2011 1 次提交
  11. 25 8月, 2011 1 次提交
  12. 02 7月, 2011 3 次提交
  13. 18 2月, 2011 2 次提交
  14. 23 1月, 2011 1 次提交