ceph: silence smatch warning in reconnect_caps_cb()
authorXiubo Li <xiubli@redhat.com>
Mon, 8 May 2023 06:45:01 +0000 (14:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:16 +0000 (10:34 +0200)
commitbaa8901ad70daf6a892c72c9d24b59180e32f234
treeb484d7215e409f1edf099cb3188bdd73ec578495
parent56e5d63e4e2df66db3308d96fc40fc7d79c938e7
ceph: silence smatch warning in reconnect_caps_cb()

[ Upstream commit 9aaa7eb018661b2da221362d9bacb096bd596f52 ]

Smatch static checker warning:

  fs/ceph/mds_client.c:3968 reconnect_caps_cb()
  warn: missing error code here? '__get_cap_for_mds()' failed. 'err' = '0'

[ idryomov: Dan says that Smatch considers it intentional only if the
  "ret = 0;" assignment is within 4 or 5 lines of the goto. ]

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ceph/mds_client.c