Skip to contentSkip to conversation

staging: lustre: lustre: Remove unnecessary pair of braces {}

PATCH Superseded Anchal Jain 2 participants 2 messages Feb 24, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index dcaa5a1..4119d3a 100644
@@ -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
#1 lore raw
Quoted 13 lines · Anchal Jain

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 +0 -0
index dcaa5a1..4119d3a 100644

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 -1
 			if (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.