]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging/ft1000: remove unnecessary assignment of ret with STATUS_SUCCESS
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 12:05:19 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 19:26:43 +0000 (12:26 -0700)
as ret is assigned to the return of ft1000_poll, we dont need to
initialise ret with STATUS_SUCCESS.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c

index e434d33454a89047f264fbdbfe090c34594214e3..7bd7fb2f3b153e8a7431b4a8684cdd04bccd1146 100644 (file)
@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
 static bool gPollingfailed = FALSE;
 static int ft1000_poll_thread(void *arg)
 {
-       int ret = STATUS_SUCCESS;
+       int ret;
 
        while (!kthread_should_stop()) {
                msleep(10);