From patchwork Wed Mar 1 00:14:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satish Kharat X-Patchwork-Id: 9597391 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C2CD60414 for ; Wed, 1 Mar 2017 03:30:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73A6B27F95 for ; Wed, 1 Mar 2017 03:30:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6868E28428; Wed, 1 Mar 2017 03:30:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 011A927F95 for ; Wed, 1 Mar 2017 03:30:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbdCADaL (ORCPT ); Tue, 28 Feb 2017 22:30:11 -0500 Received: from rcdn-iport-9.cisco.com ([173.37.86.80]:55605 "EHLO rcdn-iport-9.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbdCADaL (ORCPT ); Tue, 28 Feb 2017 22:30:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=943; q=dns/txt; s=iport; t=1488339010; x=1489548610; h=from:to:cc:subject:date:message-id; bh=cA+mnOS6V5gYyImlI4AKG2hdDtW0MQ+JvaKPKD2u+zk=; b=NM7u/vU6YSlc5HcwL4Ht2Z4t1vnUrBK60yiWoFzcQZRu99gM7LrtZetz uAuBUIwdw8CgrP7kZuVVFywGayAhwdaABsSIqOT3maSaZQ+bQRvdvagHV nUFEULEDAA4Zqsl9MQlfY5oSK6vLu3wLgNkdRCdXRM5/qojttrYPh5xoj U=; X-IronPort-AV: E=Sophos;i="5.35,222,1484006400"; d="scan'208";a="212199587" Received: from alln-core-12.cisco.com ([173.36.13.134]) by rcdn-iport-9.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Mar 2017 00:14:38 +0000 Received: from satishkh.cisco.com ([10.157.132.70]) by alln-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id v210Ebmp029210; Wed, 1 Mar 2017 00:14:38 GMT From: Satish Kharat To: linux-scsi@vger.kernel.org Cc: satishkh@cisco.com, sebaddel@cisco.com Subject: [PATCH 1/1] fnic: minor cleanup in fnic_fcpio_itmf_cmpl_handler, removing else case Date: Tue, 28 Feb 2017 16:14:33 -0800 Message-Id: <1488327273-8641-1-git-send-email-satishkh@cisco.com> X-Mailer: git-send-email 2.5.5 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Getting rid of else case to make the flow look bit more simpler logical Signed-off-by: Satish Kharat Signed-off-by: Sesidhar Baddela --- drivers/scsi/fnic/fnic_scsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c index 2544a37..df443a9 100644 --- a/drivers/scsi/fnic/fnic_scsi.c +++ b/drivers/scsi/fnic/fnic_scsi.c @@ -1128,12 +1128,11 @@ static void fnic_fcpio_itmf_cmpl_handler(struct fnic *fnic, } CMD_FLAGS(sc) |= FNIC_IO_ABT_TERM_DONE; + CMD_ABTS_STATUS(sc) = hdr_status; /* If the status is IO not found consider it as success */ if (hdr_status == FCPIO_IO_NOT_FOUND) CMD_ABTS_STATUS(sc) = FCPIO_SUCCESS; - else - CMD_ABTS_STATUS(sc) = hdr_status; atomic64_dec(&fnic_stats->io_stats.active_ios); if (atomic64_read(&fnic->io_cmpl_skip))