]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: drop redundant NULL check
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 11 May 2012 14:25:51 +0000 (17:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2012 23:54:11 +0000 (16:54 -0700)
commit1a34f9653f839f94bb1fae293bc5b079b7441b00
treeb1cd845d33315ff4d0b286d9c165d8c6e7e907d5
parent4615ff4d194256d02edcb81e6ded87781a4aaa5f
usb: chipidea: drop redundant NULL check

Currently, gadget can't be NULL in _gadget_stop_activity().

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reported-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c