Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cd1ec95 authored by Dan Carpenter's avatar Dan Carpenter Committed by Anna Schumaker
Browse files

NFS: silence a uninitialized variable warning



Static checkers have gotten clever enough to complain that "id_long" is
uninitialized on the failure path.  It's harmless, but simple to fix.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent ce85bd29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -364,6 +364,7 @@ static int nfs_idmap_lookup_id(const char *name, size_t namelen, const char *typ
		ret = -EINVAL;
	} else {
		ret = kstrtol(id_str, 10, &id_long);
		if (!ret)
			*id = (__u32)id_long;
	}
	return ret;