]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadgetfs: remove unnecessary assignment
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 9 Dec 2016 20:25:15 +0000 (15:25 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commit11fea91e81f75c3280e82e864a7a1ba6d350f7cd
treec1b754693a5ed2eb7b0ebc9f11b82de71869fc15
parent1f1a080fb3325761f0e78f29549f907c95204254
USB: gadgetfs: remove unnecessary assignment

The dev_config() routine in gadgetfs has a check that
dev->dev->bNumConfigurations is equal to 1, and then contains a
redundant line of code setting the value to 1.  This patch removes the
unnecessary assignment.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/legacy/inode.c