staging: lustre: lustre: Remove unnecessary pair of braces {}
PATCH 1/1 staging: lustre: lustre: Remove unnecessary pair of braces {}
For single statment of if not required
a braces {}.
--- drivers/staging/lustre/lustre/lov/lov_obd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/lov/lov_obd.c +2 -2
@@ -1547,9 +1547,9 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len, osc_obd->obd_force = obddev->obd_force; err =obd_iocontrol (cmd, lov->lov_tgts[i]->ltd_exp, len, karg, uarg); -if (err == -ENODATA && cmd ==OBD_IOC_POLL_QUOTACHECK ) { +if (err == -ENODATA && cmd ==OBD_IOC_POLL_QUOTACHECK )return err; - } +if (err) {if (lov->lov_tgts[i]->ltd_active) { CDEBUG(err == -ENOTTY ?
Signature · 1 line
1.9.1
Quoted 13 lines · Anchal Jain
For single statment of if not required
a braces {}.Signed-off-by Anchal Jain <[email protected]>--- drivers/staging/lustre/lustre/lov/lov_obd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/lustre/lustre/lov/lov_obd.c +0
-0
drivers/staging/lustre/lustre/lov/lov_obd.c static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len, · line 1552
Quoted 8 lines
drivers/staging/lustre/lustre/lov/lov_obd.c +2
-2@@ -1547,9 +1547,9 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len, osc_obd->obd_force = obddev->obd_force; err =obd_iocontrol (cmd, lov->lov_tgts[i]->ltd_exp, len, karg, uarg); -if (err == -ENODATA && cmd ==OBD_IOC_POLL_QUOTACHECK ) { +if (err == -ENODATA && cmd ==OBD_IOC_POLL_QUOTACHECK )return err; - } +
You don't need to add a blank line.
julia
Quoted 13 lines
drivers/staging/lustre/lustre/lov/lov_obd.c +0
-1if (err) {if (lov->lov_tgts[i]->ltd_active) { CDEBUG(err == -ENOTTY ? --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160224121357.GA3368%40life-desktop.
For more options, visit https://groups.google.com/d/optout.