USB: gadget: amd5536udc.c: delete double assignment
authorJulia Lawall <julia@diku.dk>
Tue, 26 Oct 2010 10:25:31 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 11 Nov 2010 13:51:15 +0000 (05:51 -0800)
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>
drivers/usb/gadget/amd5536udc.c

index 9034e03447235bfc5061f60630f1392e38536e2f..f8dd7269d79cf13fdf89e92950f5508b70a41c87 100644 (file)
@@ -3359,7 +3359,6 @@ static int udc_probe(struct udc *dev)
        dev_set_name(&dev->gadget.dev, "gadget");
        dev->gadget.dev.release = gadget_release;
        dev->gadget.name = name;
-       dev->gadget.name = name;
        dev->gadget.is_dualspeed = 1;
 
        /* init registers, interrupts, ... */