]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
USB: serial: removed assignment from if statements in ti_usb_3410_5052.c
authorAdhir Ramjiawan <adhirramjiawan0@gmail.com>
Mon, 9 Apr 2012 12:01:38 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 20:58:57 +0000 (13:58 -0700)
Removed the assignment statements found in if statements by the
checkpatch.pl tool.

Signed-off-by: Adhir Ramjiawan <adhirramjiawan0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ti_usb_3410_5052.c

index ab74123d658eba545bcb47b25478689243f973c3..82116f42e6fd32739e6bf431ad59a518775a601e 100644 (file)
@@ -394,7 +394,9 @@ static int ti_startup(struct usb_serial *serial)
 
        /* if we have only 1 configuration, download firmware */
        if (dev->descriptor.bNumConfigurations == 1) {
-               if ((status = ti_download_firmware(tdev)) != 0)
+               status = ti_download_firmware(tdev);
+
+               if (status != 0)
                        goto free_tdev;
 
                /* 3410 must be reset, 5052 resets itself */
@@ -1683,7 +1685,9 @@ static int ti_download_firmware(struct ti_device *tdev)
        /* try ID specific firmware first, then try generic firmware */
        sprintf(buf, "ti_usb-v%04x-p%04x.fw", dev->descriptor.idVendor,
            dev->descriptor.idProduct);
-       if ((status = request_firmware(&fw_p, buf, &dev->dev)) != 0) {
+       status = request_firmware(&fw_p, buf, &dev->dev);
+
+       if (status != 0) {
                buf[0] = '\0';
                if (dev->descriptor.idVendor == MTS_VENDOR_ID) {
                        switch (dev->descriptor.idProduct) {