dlm: Fix uninitialised variable warning in lock.c
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 15 Jun 2009 07:26:48 +0000 (08:26 +0100)
committerDavid Teigland <teigland@redhat.com>
Wed, 17 Jun 2009 16:31:32 +0000 (11:31 -0500)
commita566a6b11c86147fe9fc9db7ab15f9eecca3e862
tree3583e7e0ac8d557610df16054fd96df98062edc5
parent65795efbd380a832ae508b04dba8f8e53f0b84d9
dlm: Fix uninitialised variable warning in lock.c

  CC [M]  fs/dlm/lock.o
fs/dlm/lock.c: In function ‘find_rsb’:
fs/dlm/lock.c:438: warning: ‘r’ may be used uninitialized in this function

Since r is used on the error path to set r_ret, set it to NULL.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c