diff options
author | Colin Ian King | 2019-03-20 17:37:09 +0100 |
---|---|---|
committer | Martin K. Petersen | 2019-03-21 01:33:06 +0100 |
commit | ee26724af6c71a9db786c5809395b4853edd4d54 (patch) | |
tree | 74b430776e0e9c61150fa98358e68f2b0a6a7eab /.clang-format | |
parent | scsi: ufs-mediatek: Avoid using ret uninitialized in ufs_mtk_setup_clocks (diff) | |
download | kernel-qcow2-linux-ee26724af6c71a9db786c5809395b4853edd4d54.tar.gz kernel-qcow2-linux-ee26724af6c71a9db786c5809395b4853edd4d54.tar.xz kernel-qcow2-linux-ee26724af6c71a9db786c5809395b4853edd4d54.zip |
scsi: target: fix unsigned comparision with less than zero
Currently an error return is being assigned to an unsigned size_t varianle
and then checked if the result is less than zero which will always be
false. Fix this by making ret ssize_t rather than a size_t.
Fixes: 0322913cab79 ("scsi: target: Add device product id and revision configfs attributes")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions