]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ocfs2/dlm/dlmrecovery.c:dlm_request_all_locks(): ret should be int instead of...
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 19 Jun 2013 00:05:38 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:48 +0000 (17:12 +1000)
commit028439ce80716dffb1715b394e7b113cc27f227b
treeb4466ff6bccb29ec55da1b1b8686fe0430b1fb8d
parentc9f58264c8541c9fa642c55d640740a828b916fe
fs/ocfs2/dlm/dlmrecovery.c:dlm_request_all_locks(): ret should be int instead of enum

In dlm_request_all_locks, ret is type enum.  But o2net_send_message
returns a type int value.  Then it will never run into the following error
branch.  So we should change the ret type from enum to int.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Acked-by: Sunil Mushran <sunil.mushran@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c