]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: Remove the LUN checks which are always true
authorMaxin B John <maxin.john@gmail.com>
Sun, 8 May 2011 12:56:17 +0000 (15:56 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 21:14:59 +0000 (14:14 -0700)
commit849426c3a430a6fb4613b0e5dbb81bcd6b10a075
treebaf5dafdf261055fc60f3d0b508c2d3fea6605c0
parent304b0b572c66bcd89df13e856db16503609c1a24
usb: gadget: Remove the LUN checks which are always true

Comparing an unsigned integer with greater than or equal to zero is
always true.  So, it is safe to remove similar checks from
'f_mass_storage.c' and 'file_storage.c'

Signed-off-by: Maxin B. John <maxin.john@gmail.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/file_storage.c