OSDN Git Service

gfs2: make function gfs2_make_fs_ro() to void type
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 4 Mar 2021 14:28:57 +0000 (09:28 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sun, 7 Mar 2021 16:04:55 +0000 (17:04 +0100)
commiteb602521f43876b3f76c4686de596c9804977228
tree0165387e4115095ff5b937d9058c833157f76b79
parenta38fd8748464831584a19438cbb3082b5a2dab15
gfs2: make function gfs2_make_fs_ro() to void type

It fixes the following warning detected by coccinelle:
./fs/gfs2/super.c:592:5-10: Unneeded variable: "error". Return "0" on
line 628

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/ops_fstype.c
fs/gfs2/super.c
fs/gfs2/super.h
fs/gfs2/util.c