scsi: qedf: Cleanup the type of io_log->op
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 May 2017 21:23:57 +0000 (00:23 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 May 2017 01:51:39 +0000 (21:51 -0400)
commit0d2fc3b48ba0e267962c861c5258564c335dd1f2
tree439b99f0e57b457407c771e6329076572d15a5c6
parent0d618cf4f24cebb822eaf57c27985266e4110176
scsi: qedf: Cleanup the type of io_log->op

We store sc_cmd->cmnd[0] which is an unsigned char in io_log->op so
this should also be unsigned char.  The other thing is that this is
displayed in the debugfs:

seq_printf(s, "0x%02x:", io_log->op);

Smatch complains that the formatting won't work for negative values so
changing it to unsigned silences that warning as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf.h