提交 f1c0a578 编写于 作者: D Dave Jones 提交者: Linus Torvalds

[PATCH] fix oddball boolean logic in s390 netiucv

Signed-off-by: NDave Jones <davej@redhat.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Andreas Herrmann <aherrman@de.ibm.com>
Cc: Michael Holzheu <holzheu@de.ibm.com>
Acked-by: NJeff Garzik <jeff@garzik.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9c4b9a9b
...@@ -2029,7 +2029,7 @@ remove_write (struct device_driver *drv, const char *buf, size_t count) ...@@ -2029,7 +2029,7 @@ remove_write (struct device_driver *drv, const char *buf, size_t count)
count = IFNAMSIZ-1; count = IFNAMSIZ-1;
for (i=0, p=(char *)buf; i<count && *p; i++, p++) { for (i=0, p=(char *)buf; i<count && *p; i++, p++) {
if ((*p == '\n') | (*p == ' ')) { if ((*p == '\n') || (*p == ' ')) {
/* trailing lf, grr */ /* trailing lf, grr */
break; break;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册