All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: lustre: lmv: Remove unneeded do-while(0)
@ 2016-02-15 10:58 Bhumika Goyal
  2016-02-16  4:41 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Bhumika Goyal @ 2016-02-15 10:58 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Bhumika Goyal

do {} while (0) wrapper in a single statement macro is unneeded.
Also its ok to keep empty #define here to avoid "statement with
no effect" warning.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/lustre/lustre/lmv/lmv_obd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/lmv/lmv_obd.c b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
index 733222c..7a31bd6 100644
--- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c
+++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
@@ -2147,7 +2147,7 @@ static void lmv_adjust_dirpages(struct page **pages, int ncfspgs, int nlupgs)
 	LASSERTF(nlupgs == 0, "left = %d", nlupgs);
 }
 #else
-#define lmv_adjust_dirpages(pages, ncfspgs, nlupgs) do {} while (0)
+#define lmv_adjust_dirpages(pages, ncfspgs, nlupgs)
 #endif	/* PAGE_CACHE_SIZE > LU_PAGE_SIZE */
 
 static int lmv_readpage(struct obd_export *exp, struct md_op_data *op_data,
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-16  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 10:58 [PATCH] Staging: lustre: lmv: Remove unneeded do-while(0) Bhumika Goyal
2016-02-16  4:41 ` [Outreachy kernel] " Greg KH
2016-02-16  5:01   ` Bhumika Goyal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.