Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

orangefs: remove redundant assignment to variable ret

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>

authored by

Colin Ian King and committed by
Mike Marshall
22ce8561 9cb1fd0e

+1 -1
+1 -1
fs/orangefs/orangefs-mod.c
··· 79 79 80 80 static int __init orangefs_init(void) 81 81 { 82 - int ret = -1; 82 + int ret; 83 83 __u32 i = 0; 84 84 85 85 if (op_timeout_secs < 0)