fs: dlm: don't init error value
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:56 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
This patch removes a init of an error value to -EINVAL which is not
necessary.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index 643f9810ec3581c38f2f57b55ff0df9dfa9a9b3c..c6b91f67a2c26cc03b342a8b08b5d8136f613fd4 100644 (file)
@@ -1830,7 +1830,7 @@ static const struct dlm_proto_ops dlm_sctp_ops = {
 
 int dlm_lowcomms_start(void)
 {
-       int error = -EINVAL;
+       int error;
 
        init_local();
        if (!dlm_local_count) {