From patchwork Tue Nov 24 17:02:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Lakhani X-Patchwork-Id: 11929407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D4F2C63777 for ; Tue, 24 Nov 2020 17:03:06 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4D53206E5 for ; Tue, 24 Nov 2020 17:03:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.elisa.tech header.i=@lists.elisa.tech header.b="FzSYvaYE" Authentication-Results: mail.kernel.org; dmarc=permerror header.from=codethink.co.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+72012+206+5278000+9232812@lists.elisa.tech X-Received: by 127.0.0.2 with SMTP id t8u8YY5279335xUyZ8bYFeOA; Tue, 24 Nov 2020 09:03:05 -0800 X-Received: from ubuntu.localdomain (ubuntu.localdomain [2.127.6.98]) by mx.groups.io with SMTP id smtpd.web08.54723.1606237384193878105 for ; Tue, 24 Nov 2020 09:03:04 -0800 X-Received: by ubuntu.localdomain (Postfix, from userid 0) id 5EE441612ED; Tue, 24 Nov 2020 17:03:03 +0000 (GMT) From: "Milan Lakhani" To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-safety@lists.elisa.tech Cc: Milan Lakhani Subject: [linux-safety] [PATCH] staging: qlge: Remove unnecessary parentheses Date: Tue, 24 Nov 2020 17:02:59 +0000 Message-Id: <1606237379-6354-1-git-send-email-milan.lakhani@codethink.co.uk> Precedence: Bulk List-Unsubscribe: Sender: linux-safety@lists.elisa.tech List-Id: Mailing-List: list linux-safety@lists.elisa.tech; contact linux-safety+owner@lists.elisa.tech List-Post: X-Gm-Message-State: Ipjyy7gRIJCj06FZeJPKklTmx5278000AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.elisa.tech; q=dns/txt; s=20140610; t=1606237385; bh=kvuVZA0tPHUTnV6HgL8vM4qYHCytzRTrg4PcMrv4+ow=; h=Cc:Date:From:Subject:To; b=FzSYvaYESquMkjLaeL4M0F3FckYkugYO4KvucMWyalCBX0zKmyHAWmSuONVnHXG2r1Z 4KzfIwRcyPCQojedbp438QOgwdDxMrdHcd4je6zjJ1PdsgrUeVw1kG2m3lkAKGR/Wps0S kBIB/aH7h9eaaO4b+AJarFEPnrDir7IVX90= There were some redundant brackets in qlge_dbg.c. Reported by checkpatch. Signed-off-by: Milan Lakhani --- drivers/staging/qlge/qlge_dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 42fd139..2ed5f32 100644 --- a/drivers/staging/qlge/qlge_dbg.c +++ b/drivers/staging/qlge/qlge_dbg.c @@ -734,7 +734,7 @@ int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump) } /* Insert the global header */ - memset(&(mpi_coredump->mpi_global_header), 0, + memset(&mpi_coredump->mpi_global_header, 0, sizeof(struct mpi_coredump_global_header)); mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE; mpi_coredump->mpi_global_header.header_size = @@ -1222,7 +1222,7 @@ static void ql_gen_reg_dump(struct ql_adapter *qdev, { int i, status; - memset(&(mpi_coredump->mpi_global_header), 0, + memset(&mpi_coredump->mpi_global_header, 0, sizeof(struct mpi_coredump_global_header)); mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE; mpi_coredump->mpi_global_header.header_size =