Re: [PATCH 2/2] scsi:qlogicfas408: remove the same check in qlogicfas408_detect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux