projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71a7fd
)
Staging: speakup: &&/|| confusion in silent_store()
author
roel kluin
<roel.kluin@gmail.com>
Mon, 3 Jan 2011 19:59:48 +0000
(11:59 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 20 Jan 2011 20:06:07 +0000
(12:06 -0800)
Fix test: the branch is always taken.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/speakup/kobjects.c
patch
|
blob
|
history
diff --git
a/drivers/staging/speakup/kobjects.c
b/drivers/staging/speakup/kobjects.c
index
408bb9b
..
07a7f54
100644
(file)
--- a/
drivers/staging/speakup/kobjects.c
+++ b/
drivers/staging/speakup/kobjects.c
@@
-332,7
+332,7
@@
static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr,
unsigned long flags;
len = strlen(buf);
- if (len > 0
||
len < 3) {
+ if (len > 0
&&
len < 3) {
ch = buf[0];
if (ch == '\n')
ch = '0';