summaryrefslogtreecommitdiff
path: root/drivers/char/ip2/i2ellis.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2007-01-06 00:36:35 (GMT)
committerLinus Torvalds <torvalds@woody.osdl.org>2007-01-06 07:55:23 (GMT)
commit2723f9603a8f8bb2cd8c7b581f7c94b8d75e3837 (patch)
tree0e89c6237e497c07f8d55de73b92c91a9e9ba90f /drivers/char/ip2/i2ellis.h
parent3771a450cf47fa64f36c53ba61e36aa2ec84a86b (diff)
downloadlinux-2723f9603a8f8bb2cd8c7b581f7c94b8d75e3837.tar.xz
[PATCH] ip2 warning fix
Make this: drivers/char/ip2/ip2main.c: In function 'ip2_loadmain': drivers/char/ip2/ip2main.c:654: warning: control may reach end of non-void function 'iiSetAddress' being inlined drivers/char/ip2/ip2main.c:808: warning: control may reach end of non-void function 'iiInitialize' being inlined go away. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/ip2/i2ellis.h')
-rw-r--r--drivers/char/ip2/i2ellis.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ip2/i2ellis.h b/drivers/char/ip2/i2ellis.h
index 5eabe47..4333050 100644
--- a/drivers/char/ip2/i2ellis.h
+++ b/drivers/char/ip2/i2ellis.h
@@ -606,9 +606,9 @@ static int iiDownloadAll(i2eBordStrPtr, loadHdrStrPtr, int, int);
// code and returning.
//
#define COMPLETE(pB,code) \
- if(1){ \
+ do { \
pB->i2eError = code; \
return (code == I2EE_GOOD);\
- }
+ } while (0)
#endif // I2ELLIS_H