Re: [PATCH] csiostor: Use list_for_each_safe instead of re-implementing it

2015-07-15 Thread Johannes Thumshirn
Christophe JAILLET writes: > Use 'list_for_each_safe' instead of 'list_for_each' + own logic to keep > safe when a list entry is deleted. > Delete the now useless 'csio_list_prev' macro. > > Signed-off-by: Christophe JAILLET > --- > drivers/scsi/csiostor/csio_defs.h | 1 - > drivers/scsi/csios

[PATCH] csiostor: Use list_for_each_safe instead of re-implementing it

2015-07-15 Thread Christophe JAILLET
Use 'list_for_each_safe' instead of 'list_for_each' + own logic to keep safe when a list entry is deleted. Delete the now useless 'csio_list_prev' macro. Signed-off-by: Christophe JAILLET --- drivers/scsi/csiostor/csio_defs.h | 1 - drivers/scsi/csiostor/csio_hw.c | 10 -- drivers/scs