]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: g_ffs: remove a reduntant gfs_ether_setup variable
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Dec 2013 14:15:22 +0000 (15:15 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 12 Dec 2013 19:43:36 +0000 (13:43 -0600)
commitb557b3968cc13281f05ee5a0bd365e4414b573d8
tree8ea5447ab12547055064593c9cbab517a8172a0f
parent82a64487de4ec969e4bee1e37be0c990ef073f3f
usb: gadget: g_ffs: remove a reduntant gfs_ether_setup variable

Since b6890de35baaa1aa6fc967b034c3fe56d851e98d
usb: gadget: move the global the_dev variable to their users
"the_dev" variable can be used as a "setup done" flag; non-NULL
meaning "setup done", NULL meaning "setup not done". Moreover,
gether_cleanup() can be safely called with a NULL argument.

Corrected a comment to be consistent with the code.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/g_ffs.c