memcmp() returns int, but variable of type u8 is used to store it. When
casting int to u8, one can lose significant bits and get 0 from non-0
value returned by the memcmp().
Signed-off-by: Ivan Bornyakov
---
drivers/scsi/isci/host.c | 4 ++--
1 file changed, 2 insertions(+),
memcmp() returns int, but variable of type u8 is used to store it. When
casting int to u8, one can lose significant bits and get 0 from non-0
value returned by the memcmp().
Signed-off-by: Ivan Bornyakov
---
drivers/scsi/isci/host.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
2 matches
Mail list logo