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)
commit890e6c236dcda6d45c5f0bdd23665636376f6831
treec1b754693a5ed2eb7b0ebc9f11b82de71869fc15
parent1c069b057dcf64fada952eaa868d35f02bb0cfc2
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