[RESEND PATCH] libiscsi: avoid unnecessary multiple NULL assignments

2013-01-23 Thread Masatake YAMATO
In iscsi_free_task, NULL is assigned to task-sc twice: before and after kfifo_in invocatoin. Allocating and freeing iscsi_task are guarded with session-lock, so multiple NULL assignments cause no trouble. But people reading the source code may be confused. The second NULL assignment comes from

[RESEND PATCH] libiscsi: avoid unnecessary multiple NULL assignments

2012-11-25 Thread Masatake YAMATO
In iscsi_free_task, NULL is assigned to task-sc twice: before and after kfifo_in invocatoin. Allocating and freeing iscsi_task are guarded with session-lock, so multiple NULL assignments cause no trouble. But people reading the source code may be confused. The second NULL assignment comes from