Commit 9aaa7eb
ceph: silence smatch warning in reconnect_caps_cb()
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>1 parent f1fcbaa commit 9aaa7eb
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | | - | |
| 3945 | + | |
3946 | 3946 | | |
3947 | 3947 | | |
3948 | 3948 | | |
| |||
3965 | 3965 | | |
3966 | 3966 | | |
3967 | 3967 | | |
| 3968 | + | |
3968 | 3969 | | |
3969 | 3970 | | |
3970 | 3971 | | |
| |||
0 commit comments