* [PATCH] staging: lustre: lnet: lnet: Remove unneeded braces in lib-eq.c
@ 2015-02-21 19:29 Edward Lipinsky
0 siblings, 0 replies; only message in thread
From: Edward Lipinsky @ 2015-02-21 19:29 UTC (permalink / raw)
To: oleg.drokin, andreas.dilger, gregkh; +Cc: devel, linux-kernel
This patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Edward Lipinsky <ellipinsky@gmail.com>
---
drivers/staging/lustre/lnet/lnet/lib-eq.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/lib-eq.c b/drivers/staging/lustre/lnet/lnet/lib-eq.c
index 863cc37..5470148 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-eq.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-eq.c
@@ -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 */
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-21 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 19:29 [PATCH] staging: lustre: lnet: lnet: Remove unneeded braces in lib-eq.c Edward Lipinsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox