powerpc: Sky CPU: redundant or incorrect tests on unsigned
PATCH 1/3 powerpc: Sky CPU: redundant or incorrect tests on unsigned
From: Roel Kluin <[email protected]>
count is unsigned and cannot be less than 0.
Signed-off-by Roel Kluin <[email protected]>
Acked-by Cyrill Gorcunov <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Brian Waite <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/misc/hdpuftrs/hdpu_cpustate.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/misc/hdpuftrs/hdpu_cpustate.c renamed from drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned +0 -5
@@ -121,8 +121,6 @@ static ssize_t cpustate_read(struct file {unsigned char data; -if (count <0 ) -return -EFAULT ;if (count ==0 )return 0 ;
@@ -137,9 +135,6 @@ static ssize_t cpustate_write(struct fil {unsigned char data; -if (count <0 ) -return -EFAULT ; -if (count ==0 )return 0 ;
_