diff options
author | Julia Lawall <julia@diku.dk> | 2010-10-26 06:25:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-11 08:51:15 -0500 |
commit | 8b455561d28bcfac17d6910e64c616cf684da07f (patch) | |
tree | 471f6588a7d59399ef05051d6c17d417618773ca /drivers/usb/gadget/amd5536udc.c | |
parent | 06c3859fc9bd62edb7211b241eadd0cdc8ecbecd (diff) |
USB: gadget: amd5536udc.c: delete double assignment
Delete successive assignments to the same location.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression i;
@@
*i = ...;
i = ...;
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Thomas Dahlmann <dahlmann.thomas@arcor.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r-- | drivers/usb/gadget/amd5536udc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index 9034e0344723..f8dd7269d79c 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c | |||
@@ -3359,7 +3359,6 @@ static int udc_probe(struct udc *dev) | |||
3359 | dev_set_name(&dev->gadget.dev, "gadget"); | 3359 | dev_set_name(&dev->gadget.dev, "gadget"); |
3360 | dev->gadget.dev.release = gadget_release; | 3360 | dev->gadget.dev.release = gadget_release; |
3361 | dev->gadget.name = name; | 3361 | dev->gadget.name = name; |
3362 | dev->gadget.name = name; | ||
3363 | dev->gadget.is_dualspeed = 1; | 3362 | dev->gadget.is_dualspeed = 1; |
3364 | 3363 | ||
3365 | /* init registers, interrupts, ... */ | 3364 | /* init registers, interrupts, ... */ |