Re: [PATCH 5/7] scsi: qla4xxx: shut up warning for rd_reg_indirect

2016-02-01 Thread Nilesh Javali
On 27/01/16 9:27 PM, "Arnd Bergmann" wrote: >The qla4_83xx_rd_reg_indirect() function can fail when it is unable >to read a register, but not all callers check its return value before >using the register data, and gcc correctly warns about this: > >qla4xxx/ql4_83xx.c: In function 'qla4_83xx_pro

[PATCH 5/7] scsi: qla4xxx: shut up warning for rd_reg_indirect

2016-01-27 Thread Arnd Bergmann
The qla4_83xx_rd_reg_indirect() function can fail when it is unable to read a register, but not all callers check its return value before using the register data, and gcc correctly warns about this: qla4xxx/ql4_83xx.c: In function 'qla4_83xx_process_reset_template': qla4xxx/ql4_83xx.c:1073:36: war