aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/oprofile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/oprofile')
-rw-r--r--arch/s390/oprofile/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c
index 6cf2286d0405..2297be406c61 100644
--- a/arch/s390/oprofile/init.c
+++ b/arch/s390/oprofile/init.c
@@ -123,7 +123,7 @@ static ssize_t hwsampler_write(struct file *file, char const __user *buf,
123 return -EINVAL; 123 return -EINVAL;
124 124
125 retval = oprofilefs_ulong_from_user(&val, buf, count); 125 retval = oprofilefs_ulong_from_user(&val, buf, count);
126 if (retval) 126 if (retval <= 0)
127 return retval; 127 return retval;
128 128
129 if (val != 0 && val != 1) 129 if (val != 0 && val != 1)