]> git.baikalelectronics.ru Git - kernel.git/commitdiff
orangefs: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Sun, 24 May 2020 22:48:02 +0000 (23:48 +0100)
committerMike Marshall <hubcap@omnibond.com>
Fri, 29 May 2020 20:24:57 +0000 (16:24 -0400)
The variable ret is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-mod.c

index c010c1fddafc1302801ec6c6d552b19ffd04659a..289b648ae196744c69066220423d8ec14598872f 100644 (file)
@@ -79,7 +79,7 @@ DECLARE_WAIT_QUEUE_HEAD(orangefs_request_list_waitq);
 
 static int __init orangefs_init(void)
 {
-       int ret = -1;
+       int ret;
        __u32 i = 0;
 
        if (op_timeout_secs < 0)