Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5867069rwi; Tue, 18 Oct 2022 05:22:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vL5w1AA/TuScpas14/7pOBkKQP74AHywS28WOftRk2w47G2vZdCw8tDH3obEycfVB16jv X-Received: by 2002:a17:907:a073:b0:78d:51c4:5b8c with SMTP id ia19-20020a170907a07300b0078d51c45b8cmr2133225ejc.355.1666095727452; Tue, 18 Oct 2022 05:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666095727; cv=none; d=google.com; s=arc-20160816; b=nRBhNDKJo59D6BCsczrEJAPhhPzB03RBhdBniDJaOQLGULVoLqUAeiWN4+IFC+y8pr WHu7JvBVqDmHxDLiFd6QVtwG5km/+9CixRg3mFEtFU17iODjhcV2XlZF8zUVn7+bdSi1 QeFanpa+ODSU6ZfOyyVUeehSCd/1CxTKrfb1dmHPecpdUbjm8oNBHRWeGVHsK488Pa0h lTiIdzeJL4tHfltYD/aWcRmhYRo+NswdHeD7DZMJsvdSx3cJ9CctCClxUKOzxeHog5Uy 1f1Zi9J4bf7VQ4Jn61ur2djM5Bp44kffRM8jrjaWF/skXgUkUlfn5Hplz66eNAO0JtXD EiQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=p9MaN1cNxzsKmUBSvr1168hWuNPIS4qtuoR7aCQsxpU=; b=c9x1b2GDeqfx+rtnh5IiXpvNzvtqwXPeUEZ99YKq/+W0nZuhYfiL8bHiVkBtcbYAK0 hHZe8E4EPxzsl0DLDQCO0JrDuoSVdIvdq+zUjV8PZP7+f94y3ZrxL+3PEq5FJgxca3vU O0PHCRBpMPhhoYt09xIbLCRzhB2thFzYWjyJjkmNwZRe4YrUlZcHPiDLAo7ggOqUmhZS x/bVT084DFdwICssC1d7S5LdQxvU9i6StJp919m0WjEJa5sRsaSbLKK8fxmTyzD4DTH+ oYedfkhJhwdrTrzFdGhZyuJkQpV1LSAk7kfXuJD4IPubLIZSa85A7J7pd0E0pObsEF3p 2ivw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=LxsqxbvG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a1709067c0b00b0078a3ef9f092si10143890ejo.998.2022.10.18.05.21.37; Tue, 18 Oct 2022 05:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=LxsqxbvG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbiJRML7 (ORCPT + 99 others); Tue, 18 Oct 2022 08:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbiJRML6 (ORCPT ); Tue, 18 Oct 2022 08:11:58 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B6D860E3 for ; Tue, 18 Oct 2022 05:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=p9MaN1cNxzsKmUBSvr1168hWuNPIS4qtuoR7aCQsxpU=; b=LxsqxbvGaWIxD/unTRxG5cIthVOf+F9Oz0EHw+V2fmvgfY3dEs0ugeEe 6ZrqdXw1buEUBzN9RVn7822ZoNopi0TJH2VrYs17gJcQzTgK8dKyzP3hu Jf1JOFS+0V68YNc6gPaXky+IrrSdwyiwQHoUuDuFajq/0pUKkrotozZCG w=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.95,193,1661810400"; d="scan'208";a="65739145" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 14:11:55 +0200 Date: Tue, 18 Oct 2022 14:11:54 +0200 (CEST) From: Julia Lawall To: Tanjuate Brunostar cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v2] staging: rts5208: split long line of code In-Reply-To: Message-ID: <16a2d3ed-8841-ba37-28cb-7dd727fcae6d@inria.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Oct 2022, Tanjuate Brunostar wrote: > Fix checkpatch warning by splitting up a long line of code, improving > code readability > > Signed-off-by: Tanjuate Brunostar Acked-by: Julia Lawall > --- > > v2: Reorganized the line of code by splitting it where it does not break > the parenthesis as recommended by Julia Lawall > > drivers/staging/rts5208/sd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c > index 4643127a87ca..74c4f476b3a4 100644 > --- a/drivers/staging/rts5208/sd.c > +++ b/drivers/staging/rts5208/sd.c > @@ -4505,7 +4505,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) > if (CHK_SD(sd_card)) { > retval = reset_sd(chip); > if (retval != STATUS_SUCCESS) { > - sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON | SD_SDR_RST); > + sd_card->sd_lock_status &= > + ~(SD_UNLOCK_POW_ON | SD_SDR_RST); > goto sd_execute_write_cmd_failed; > } > } > -- > 2.34.1 > > >