9p: Remove unnecessary IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Dec 2020 07:04:34 +0000 (10:04 +0300)
committerDominique Martinet <asmadeus@codewreck.org>
Tue, 1 Dec 2020 07:19:02 +0000 (08:19 +0100)
commitcfd1d0f524a87b7d6d14b41a14fa4cbe522cf8cc
tree8049ba04943044862d1f1a65b5e45147decbc355
parentdfd375864ac1e2ee60ed2d61820697ac01642f80
9p: Remove unnecessary IS_ERR() check

The "fid" variable can't be an error pointer so there is no need to
check.  The code is slightly cleaner if we move the increment before
the break and remove the NULL check as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/fid.c