Re: [PATCH] target: initialize sense_reason_t ret in core_scsi3_emulate_pro_register()

2013-01-08 Thread Nicholas A. Bellinger
Hi Geert, Apologies for the delay on this one. Still catching up on some older holiday items.. On Sat, 2012-12-22 at 22:15 +0100, Geert Uytterhoeven wrote: > drivers/target/target_core_pr.c: In function > ‘core_scsi3_emulate_pro_register’: > drivers/target/target_core_pr.c:2056: warning: ‘ret’

Re: [PATCH] target: initialize sense_reason_t ret in core_scsi3_emulate_pro_register()

2013-01-08 Thread Nicholas A. Bellinger
Hi Geert, Apologies for the delay on this one. Still catching up on some older holiday items.. On Sat, 2012-12-22 at 22:15 +0100, Geert Uytterhoeven wrote: drivers/target/target_core_pr.c: In function ‘core_scsi3_emulate_pro_register’: drivers/target/target_core_pr.c:2056: warning: ‘ret’

[PATCH] target: initialize sense_reason_t ret in core_scsi3_emulate_pro_register()

2012-12-22 Thread Geert Uytterhoeven
drivers/target/target_core_pr.c: In function ‘core_scsi3_emulate_pro_register’: drivers/target/target_core_pr.c:2056: warning: ‘ret’ may be used uninitialized in this function If !spec_i_pt, the "goto out_put_pr_reg" on line 2141 seems to be a real case where ret is not initialized.

[PATCH] target: initialize sense_reason_t ret in core_scsi3_emulate_pro_register()

2012-12-22 Thread Geert Uytterhoeven
drivers/target/target_core_pr.c: In function ‘core_scsi3_emulate_pro_register’: drivers/target/target_core_pr.c:2056: warning: ‘ret’ may be used uninitialized in this function If !spec_i_pt, the goto out_put_pr_reg on line 2141 seems to be a real case where ret is not initialized.