From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH 09/12] IB/srp: Remove a superfluous check from srp_free_req_data() Date: Thu, 30 Apr 2015 12:37:59 +0200 Message-ID: <55420607.1060808@sandisk.com> References: <5541EE21.3050809@sandisk.com> <5541EF4F.6050200@sandisk.com> <55420188.2020409@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55420188.2020409@dev.mellanox.co.il> Sender: linux-scsi-owner@vger.kernel.org To: Sagi Grimberg , Doug Ledford Cc: James Bottomley , Sagi Grimberg , Sebastian Parschauer , linux-rdma , "linux-scsi@vger.kernel.org" List-Id: linux-rdma@vger.kernel.org On 04/30/15 12:18, Sagi Grimberg wrote: > On 4/30/2015 12:01 PM, Bart Van Assche wrote: >> All srp_free_req_data() callers guarantee that ch->target != NULL >> hence remove the ch->target test from srp_free_req_data(). > > ch->target is not referenced anywhere in this routine. So why does > this guarantee matter? I can shorten the description of this patch if you want. Bart.