Skip to contentSkip to conversation

staging : lustre : Remove braces from single-line body.

PATCH In review Tabrez khan 2 participants 2 messages Dec 28, 2016 – Jan 3, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging : lustre : Remove braces from single-line body.

Remove unnecessary braces from single-line if statement. This warning is found using checkpatch.pl.

---
 drivers/staging/lustre/lustre/ptlrpc/import.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/ptlrpc/import.c +2 -2
index 477d832..b55680b 100644
@@ -1392,9 +1392,9 @@ int ptlrpc_import_recovery_state_machine(struct obd_import *imp)
 	}
 
 	if (imp->imp_state == LUSTRE_IMP_REPLAY_WAIT) {
-		if (atomic_read(&imp->imp_replay_inflight) == 0) {
+		if (atomic_read(&imp->imp_replay_inflight) == 0)
 			IMPORT_SET_STATE(imp, LUSTRE_IMP_RECOVER);
-		}
+
 	}
 
 	if (imp->imp_state == LUSTRE_IMP_RECOVER) {
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 7 lines · Tabrez khan

Remove unnecessary braces from single-line if statement. This warning is found using checkpatch.pl.

---
 drivers/staging/lustre/lustre/ptlrpc/import.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

You have sent me 5 patches, with 4 of them having duplicated subject lines, yet they do different things. Also, what order am I supposed to apply these patches in?

Please resend them as a patch series, properly numbered, and with unique subjects.

thanks,

greg k-h