aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-11-17 17:11:56 -0500
committerDavid Teigland <teigland@redhat.com>2022-11-21 09:45:49 -0600
commit1351975ac1377225cef5d858971e17252c06ff51 (patch)
tree38b6a84f8e7b8b851567e6d66ce9f8261b421e27
parentfs: dlm: use saved sk_error_report() (diff)
downloadwireguard-linux-1351975ac1377225cef5d858971e17252c06ff51.tar.xz
wireguard-linux-1351975ac1377225cef5d858971e17252c06ff51.zip
fs: dlm: don't init error value
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>
-rw-r--r--fs/dlm/lowcomms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 643f9810ec35..c6b91f67a2c2 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -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) {