Skip to contentSkip to conversation

staging: lustre: lnet: lnet: Remove unneeded braces in lib-eq.c

PATCH New Edward Lipinsky 1 participant 1 message Feb 21, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: lnet: lnet: Remove unneeded braces in lib-eq.c

This patch fixes the checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/lustre/lnet/lnet/lib-eq.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/lustre/lnet/lnet/lib-eq.c +1 -2
index 863cc37..5470148 100644
@@ -81,9 +81,8 @@ LNetEQAlloc(unsigned int count, lnet_eq_handler_t callback,
 
 	count = cfs_power2_roundup(count);
 
-	if (callback != LNET_EQ_HANDLER_NONE && count != 0) {
+	if (callback != LNET_EQ_HANDLER_NONE && count != 0)
 		CWARN("EQ callback is guaranteed to get every event, do you still want to set eqcount %d for polling event which will have locking overhead? Please contact with developer to confirm\n", count);
-	}
 
 	/* count can be 0 if only need callback, we can eliminate
 	 * overhead of enqueue event */
Signature · 1 line
1.7.9.5