dlm: Delete an unnecessary variable initialisation in dlm_ls_start()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 07:56:55 +0000 (09:56 +0200)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000 (11:23 -0500)
The local variable "rv" is reassigned by a statement at the beginning.
Thus omit the explicit initialisation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/member.c

index 3e565034ff2e57444ce8f742bd492b430b0dab20..3fda3832cf6a62761e5aa8294c4c1e81919267eb 100644 (file)
@@ -670,7 +670,7 @@ int dlm_ls_stop(struct dlm_ls *ls)
 
 int dlm_ls_start(struct dlm_ls *ls)
 {
-       struct dlm_recover *rv = NULL, *rv_old;
+       struct dlm_recover *rv, *rv_old;
        struct dlm_config_node *nodes;
        int error, count;