From patchwork Wed Jul 22 08:53:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 6841161 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 78BFA9F358 for ; Wed, 22 Jul 2015 08:53:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A66EC206AA for ; Wed, 22 Jul 2015 08:53:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 99B482061F for ; Wed, 22 Jul 2015 08:53:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756156AbbGVIxk (ORCPT ); Wed, 22 Jul 2015 04:53:40 -0400 Received: from mout.gmx.net ([212.227.17.20]:58242 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756064AbbGVIxi (ORCPT ); Wed, 22 Jul 2015 04:53:38 -0400 Received: from localhost ([88.75.34.197]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MSp1l-1ZPEKI2wIn-00RobV; Wed, 22 Jul 2015 10:53:35 +0200 Date: Wed, 22 Jul 2015 10:53:22 +0200 From: Sebastian Herbszt To: linux-scsi@vger.kernel.org Cc: James Smart , Sebastian Herbszt Subject: [PATCH] lpfc: Use && instead of & for boolean expression Message-ID: <20150722105322.00004f4b@localhost> X-Mailer: Claws Mail 3.9.2-55-g74b05b (GTK+ 2.16.6; i586-pc-mingw32msvc) MIME-Version: 1.0 X-Provags-ID: V03:K0:fACkQcTH4XE9UxIVqkpoMNZwxnvk7DFZq1eQ8+Sg/+mtqC+2d+f splomevzvn5LtOd6uFkb+PdP/KKw0AMpPy/1Eo80uC0kJZYLl+AEzFn1Niu637A1mJh/d8Z VmWcYvpegqsmw5OT641ZvhARglyYFLCXXaMPOqJk3P4Pk00YjEBIrSb//VU5AteIbLSlwVV Uv4zOcchJ4FvYRSXkBI/A== X-UI-Out-Filterresults: notjunk:1; V01:K0:vu0El1L1zgQ=:OkpHkfRLrMNM0/Gar5Quqf H59inXlg3Rq8JcKnlczz4nLwSR5lwIOOE2dc1ViJNF+pY5X5Zso8qolk4RqGKVNYlpmLNmBCY oOekLaJDoKPN4VuJA7zpX+bR4nEjEkyGa5Wb4jjIdGgipG9Q0Ef2cu9ElWWtijImUCG0qohz7 64lgoPtb43UWGSh+FUuOcFYUJK5CVDLRWW1Oz4cP8ubhXPFmEfkQEWU+sLHerRaglbKs29jzH H9gSQjfDYiKWT476TbLH0obPh/tb7MJdbkvwk2xksJJC/BEk4krg9HHM+zUHM9IN0vowGmkXQ W14dMo2vfDTaqH/1BokwbOnRTq8AoLOS1+rBz4TAvBXyAjKx7+NcT+m6srk4Zg4pSHEnXS3U+ VF4OYI947A2SLux0PvYz8LBP6bGbxSCJfaue6jzMhfDvAgN6qJ6WLRYePtvLgUQjDiRZ4GLhJ QKImjmsGm/wXH66xb7T4VuIWoUWXW6YA0G0lhWJLWfQ7KB4bJqT+aQMbc4pZ61BOoZ2Hz9mdt +KbElRHhaovgiMlIMmage+FPc6+dZ9U2GkTw6g+QcZZbpSArdBc/S/D4cFPBdP7mZiq/93bgW JHECwfxWsLrys5wB86VPixcAiKnbLtypLiR4U00hABiSQN63xt2vixlwtvgzZrC4wzgxsG+mU wUPr40G7DTYwAThMW7LhhcwcCogiajn8FdNuJJbHW5wwnJAj0fY9wCKKSp3+eAxbVbyo= Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use logical instead of bitwise AND. Signed-off-by: Sebastian Herbszt Reviewed-by: James Smart --- -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -urp a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c --- a/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-05 22:18:43.933739150 +0200 +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-22 10:31:14.240209475 +0200 @@ -701,7 +701,7 @@ lpfc_work_done(struct lpfc_hba *phba) HA_RXMASK)); } } - if ((phba->sli_rev == LPFC_SLI_REV4) & + if ((phba->sli_rev == LPFC_SLI_REV4) && (!list_empty(&pring->txq))) lpfc_drain_txq(phba); /*