Several cleanup paths can be simplified if it is allowed to pass a NULL pointer to scsi_free_scsi_task(). Hence modify this function such that it returns immediately if passed a NULL task pointer. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Several cleanup paths can be simplified if it is allowed to pass a NULL pointer to scsi_free_scsi_task(). Hence modify this function such that it returns immediately if passed a NULL task pointer. Signed-off-by: Bart Van Assche <bvanassche@acm.org>