OSDN Git Service

staging: erofs: fix 1 warning and 9 checks
authorPavel Zemlyanoy <zemlyanoy@ispras.ru>
Thu, 30 Aug 2018 15:14:02 +0000 (18:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 08:09:26 +0000 (10:09 +0200)
commitf72403461bd40658fe483c4caba592c55b84521a
treefcee411306958962c106071c8220b81d5edcc297
parente4fccc8c9d0a7163017d5e88811632a4ecd59a5d
staging: erofs: fix 1 warning and 9 checks

This patch does not change the logic, it only
corrects the formatting and checkpatch checks by
braces {} should be used on all arms of this statement,
unbalanced braces around else statement and warning by
braces {} are not necessary for any arm of this statement.

The patch fixes 9 checks of type:
"Check: braces {} should be used on all arms of this statement";
"Check: Unbalanced braces around else statement";

and 1 warning of type:
"WARNING: braces {} are not necessary for any arm of this statement".

Signed-off-by: Pavel Zemlyanoy <zemlyanoy@ispras.ru>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle_lz4.c