mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
[PATCH] fix oddball boolean logic in s390 netiucv
Signed-off-by: Dave 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: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
9c4b9a9b55
commit
f1c0a578ca
1 changed files with 1 additions and 1 deletions
|
@ -2029,7 +2029,7 @@ remove_write (struct device_driver *drv, const char *buf, size_t count)
|
|||
count = IFNAMSIZ-1;
|
||||
|
||||
for (i=0, p=(char *)buf; i<count && *p; i++, p++) {
|
||||
if ((*p == '\n') | (*p == ' ')) {
|
||||
if ((*p == '\n') || (*p == ' ')) {
|
||||
/* trailing lf, grr */
|
||||
break;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue