Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934676AbeAHQTS (ORCPT + 1 other); Mon, 8 Jan 2018 11:19:18 -0500 Received: from mout.web.de ([212.227.15.4]:63071 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932349AbeAHQTQ (ORCPT ); Mon, 8 Jan 2018 11:19:16 -0500 Subject: [PATCH 4/4] misc/ioc4: Adjust one function call together with a variable assignment From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Andrew Morton , Arnd Bergmann , Brent Casavant , Greg Kroah-Hartman , Jeremy Higdon , Pat Gefre Cc: LKML References: <4fb26753-2ae3-7c17-7777-03c6923a1d4b@users.sourceforge.net> Message-ID: Date: Mon, 8 Jan 2018 17:19:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <4fb26753-2ae3-7c17-7777-03c6923a1d4b@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:TTHmQRRhB+YkSKdm0PvBasIMzc3knVT083ZNs2UJZjnWQRSdWB2 HjrSkP9FSld4iUrNDQb7kqvn3kt8CFuVeIBB4ORUxAm9rMp5IghM8877XWbfnPbQxXM4CuP h+ZfQCLVvpUcQpdyj4XC135TtvEU3TEi1pB6I/dh4375rnfuZHRMoI+mnNUyajHiOPt/G3Y v2gHdmpfus53NUfOqZACw== X-UI-Out-Filterresults: notjunk:1;V01:K0:NliwKPbQFRA=:1KV9Wxo6Yh1DPy8Sc0vWaJ 8IF+5wdbUCHgumcu72pgFkFU4CJFkiJBx2F52LoIl5tYFYefEM2UcgX6Kno9+RdxRSWa7c+Qx IMSSmsMVz8rAfHE7t7lTwN2MJ/51urLYXNq0KOa75EV2SadyuxijWJw7ldg5WDHNnD0Bwk2o1 X7gg5qBUEIRzMQdI8ziqFQQ4rmVG8w61rqMnnz+d+EM+BQS7IzPCh3JtnErZ/e59Cnj+xkg3u CyzSFhVBB/OAVZq4lWMGMQZapPKi5BNTF1p7ftvoQ6kk1iBPKSg5NWHR6KNUrWB/hWBibs41m x1kZuTufcRJWQJj7ya9I0Oun2Bqbp3URXsFNh2mv88/Q3QnvcJBtHVmyBMxc23f6Wq2hCVl+8 AD71eBNyEbofTDmfboRI2fAgWjfbFwldXseK1Ga8A9fNHt7Pany3iV7y1Ys1fz2H9lyWZ6F3S R6m//CSoA5neGgAR+zafldWekU6HXVeXF0ILzKlX/y/pv17VZTt+rhNACe5dhWJzpwmGs9Cl/ RoUDkBfTcTR2pdNRlQQG19wsRRpmREpFU4OBwVR6l1X/ZjwmNnSrV4Oo8Buz94vxSYXkInsBY fqaXk/h1lXGznf7BoMXSAxQDIIPSbKKkLGLbCP4w8wom+nX0vYXHu6mBhE3PtChPwNWdesTzM hdPVqfY2CErnhI2zEAIuTQsmgrHzmLV6HxOA6A0EyYZCiORLfvPoXhTdjHZdksV4vHSpo3ovn MAD4FCdJcV1jkpcWRFrEjkvA65JI8fBn+Yl2zXXX3edGYrKymlTv5hMWYuKXRLbiQ2aQYXbyf fSY8273X6iXHANMWNlvWuy24Y4L/okPNKsp1boAsRRSYVlCq8w= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Mon, 8 Jan 2018 16:43:21 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/misc/ioc4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index 704e13382df0..8381dd9c7dd9 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c @@ -283,10 +283,11 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) struct ioc4_driver_data *idd; struct ioc4_submodule *is; uint32_t pcmd; - int ret; /* Enable IOC4 and take ownership of it */ - if ((ret = pci_enable_device(pdev))) { + int ret = pci_enable_device(pdev); + + if (ret) { printk(KERN_WARNING "%s: Failed to enable IOC4 device for pci_dev %s.\n", __func__, pci_name(pdev)); -- 2.15.1