On Thu, 2018-08-02 at 10:45 +-0800, zhong jiang wrote: +AD4- we should not use same check in a expression. just remove one +AD4- of them. +AD4- +AD4- Signed-off-by: zhong jiang +ADw-zhongjiang+AEA-huawei.com+AD4- +AD4- --- +AD4- drivers/scsi/qlogicfas408.c +AHw- 3 +--- +AD4- 1 file changed, 1 insertion(+-), 2 deletions(-) +AD4- +AD4- diff --git a/drivers/scsi/qlogicfas408.c b/drivers/scsi/qlogicfas408.c +AD4- index 8b471a9..1409ac1 100644 +AD4- --- a/drivers/scsi/qlogicfas408.c +AD4- +-+-+- b/drivers/scsi/qlogicfas408.c +AD4- +AEAAQA- -567,8 +-567,7 +AEAAQA- void qlogicfas408+AF8-setup(int qbase, int id, int int+AF8-type) +AD4- int qlogicfas408+AF8-detect(int qbase, int int+AF8-type) +AD4- +AHs- +AD4- REG1+ADs- +AD4- - return (((inb(qbase +- 0xe) +AF4- inb(qbase +- 0xe)) +AD0APQ- 7) +ACYAJg- +AD4- - ((inb(qbase +- 0xe) +AF4- inb(qbase +- 0xe)) +AD0APQ- 7))+ADs- +AD4- +- return (inb(qbase +- 0xe) +AF4- inb(qbase +- 0xe)) +AD0APQ- 7+ADs- +AD4- +AH0- Does inb() have any side effects? Bart.