]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: o2net: silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Feb 2015 22:09:10 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:29 +0000 (14:30 -0800)
commit66670a9a812c7b50b396ba9cff48b707d9c534db
treec793703efd0aae6b49afef6c39917d719e2dbc0e
parentb765cdfcba57cb732e0f959738c94a6925481431
ocfs2: o2net: silence uninitialized variable warning

Smatch complains that, if o2net_tx_can_proceed() returns false, then "sc"
and "ret" are uninialized or maybe we are re-using the data from previous
iteration.  I do not know if we can hit this bug in real life but checking
the return value is harmless and we may as well silence the static checker
warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c