From patchwork Tue Nov 24 16:30:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Lakhani X-Patchwork-Id: 11929357 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 8B9E3C63777 for ; Tue, 24 Nov 2020 16:30:38 +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 8316920715 for ; Tue, 24 Nov 2020 16:30:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.elisa.tech header.i=@lists.elisa.tech header.b="AFbY+dbV" Authentication-Results: mail.kernel.org; dmarc=permerror header.from=codethink.co.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+72012+201+5278000+9232812@lists.elisa.tech X-Received: by 127.0.0.2 with SMTP id gxVaYY5279335xnh9vrHuJDO; Tue, 24 Nov 2020 08:30:36 -0800 X-Received: from ubuntu.localdomain (ubuntu.localdomain [2.127.6.98]) by mx.groups.io with SMTP id smtpd.web10.54127.1606235435403233805 for ; Tue, 24 Nov 2020 08:30:36 -0800 X-Received: by ubuntu.localdomain (Postfix, from userid 0) id 8CAC31612ED; Tue, 24 Nov 2020 16:30:33 +0000 (GMT) From: "Milan Lakhani" To: 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 16:30:24 +0000 Message-Id: <1606235424-5766-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: gaxygcM48iX1VqGb7lNrOTRvx5278000AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.elisa.tech; q=dns/txt; s=20140610; t=1606235436; bh=G4ovRLSVv8/AXpdn3oZKaPnaEi/juPGMKop3pMLaKsM=; h=Cc:Date:From:Subject:To; b=AFbY+dbVEB7sDBMzhC0rCFNGxBJcMzTcMUUhQfiCqZigNzdnzEkPqK2ENESdsy2HSf/ xwa7K04xX7hijBN3Z9WktRSwZIZmbcCc5i+oGp9LKCUkZ/HsY/Rve5Zz0POLY88dFQqAc zVBPGHShjWkvkKQgzq+zjVwL0huWpfLWSf8= 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 =