From: Hannes Reinecke Subject: Re: [PATCH 08/20] libfc: Replace ->rport_create callback with function call Date: Tue, 18 Oct 2016 12:23:22 +0200 Message-ID: <2b698d8d-2b27-2cda-3435-8f8895673589@suse.de> References: <1476777714-3543-1-git-send-email-hare@suse.de> <1476777714-3543-9-git-send-email-hare@suse.de> <20161018085415.eb33ubgvdegcqrpm@linux-x5ow.site> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: Received: from mx2.suse.de ([195.135.220.15]:33784 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752803AbcJRKXZ (ORCPT ); Tue, 18 Oct 2016 06:23:25 -0400 In-Reply-To: <20161018085415.eb33ubgvdegcqrpm@linux-x5ow.site> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Johannes Thumshirn Cc: "Martin K. Petersen" , Johannes Thumshirn , Christoph Hellwig , Bart van Assche , James Bottomley , linux-scsi@vger.kernel.org, Hannes Reinecke On 10/18/2016 10:54 AM, Johannes Thumshirn wrote: > On Tue, Oct 18, 2016 at 10:01:42AM +0200, Hannes Reinecke wrote: >> The ->rport_create callback only ever had a single implementation, >> so we can as well call it directly and drop the callback. >> >> Signed-off-by: Hannes Reinecke >> --- > > Any reason we can't rename fc_rport_create() with fc_remote_port_create() > so the scsi_transport_fc.c patch isn't needed? > Yes: consistency. Every function in libfc/fc_rport.c is named 'fc_rport_XXX'. So we should stick to that naming scheme here, too. scsi_transport_fc.c does not have such a strict naming scheme, so it's easier to rename that. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)