Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701AbdGZNJB (ORCPT ); Wed, 26 Jul 2017 09:09:01 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37317 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbdGZNI4 (ORCPT ); Wed, 26 Jul 2017 09:08:56 -0400 From: Himanshu Jha To: bp@alien8.de Cc: mchehab@kernel.org, linux-kernel@vger.kernel.org, Himanshu Jha Subject: [PATCH] Drivers : edac : checkpatch.pl clean up Date: Wed, 26 Jul 2017 18:37:48 +0530 Message-Id: <1501074468-8884-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1146 Lines: 39 Fixed 'no assignment in if condition' coding style issue and removed unnecessary spaces at the start of a line. Signed-off-by: Himanshu Jha --- drivers/edac/i82860_edac.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c index 236c813..c8c1c4d 100644 --- a/drivers/edac/i82860_edac.c +++ b/drivers/edac/i82860_edac.c @@ -282,7 +282,9 @@ static void i82860_remove_one(struct pci_dev *pdev) if (i82860_pci) edac_pci_release_generic_ctl(i82860_pci); - if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) + mci = edac_mc_del_mc(&pdev->dev); + + if (mci == NULL) return; edac_mc_free(mci); @@ -312,10 +314,11 @@ static int __init i82860_init(void) edac_dbg(3, "\n"); - /* Ensure that the OPSTATE is set correctly for POLL or NMI */ - opstate_init(); + /* Ensure that the OPSTATE is set correctly for POLL or NMI */ + opstate_init(); - if ((pci_rc = pci_register_driver(&i82860_driver)) < 0) + pci_rc = pci_register_driver(&i82860_driver); + if (pci_rc < 0) goto fail0; if (!mci_pdev) { -- 2.7.4