]> 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>
Fri, 7 Jun 2013 00:07:23 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:41:57 +0000 (15:41 +1000)
commitbcaeb9b8c7f43a36bd4eb633d0e39968ed2b5560
tree64c13767d583e62e5d4ad79866bc362686de4c4f
parent6f37ec7e54cf95b7ac77303e3367f1fef62e14f5
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