Message ID | Y0550VcHI8NzFzzf@elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1871296wrs; Tue, 18 Oct 2022 03:08:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4jjJP5vL8xA6kSrHBvhHj46ANjHj5ES3fpMYOVXTOP5D3mCrcTVsy3rHDv5b+Om3aZ/V7h X-Received: by 2002:a17:906:9be2:b0:78d:957d:9efa with SMTP id de34-20020a1709069be200b0078d957d9efamr1693789ejc.411.1666087693376; Tue, 18 Oct 2022 03:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666087693; cv=none; d=google.com; s=arc-20160816; b=fKMpA9/0lDE2Mq3uX6btggGrwDggZLUvdosRPQ9o68dA8cfHkneRRt73hLorOiaYVt XfdPXHU3vZlz/zLZn4PiU66xCO0YKsb9wJIr1P6fhb7SAohwL9mTVS4qFnUjjn5HcRw2 SslOOh9Q7t7AF65qjiKPbPx1A4FQYKQa6m3gStvM+lwDjEAp+D3xkvaVkekH3/6A5BeC a9yhTwC5PFaviwW+VWvWMdvXFFPzYnEDNB2sm4lo/COmmYeY0cjsP3bR21HNuK7/1PaG 0dahmxpu7vCKR51hv9EQ040e8O34tB3gImQNNrp8/gDvFLVAaLZUuDZ4wYCOs8KuEGjq +2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=poXckQpsmoxwNoGHA5Pmt8l8Bzt77xEo7VBtN46YHYQ=; b=zQDuu1MaaTBXRFMTb7FyembZ9Z3HaCUMvcWT5aBZpzmbruQv3vr9LstlIP1bf9UysB Xel2D1vgEseb53ZM3xkUO3ZoWc3rvKVzHl71aapjrRhAk5O9rHSQjKGzTzzP1c33poav jHHHe4EcJpNP8CTMtwzR29zGHpZxcEs/h1rnuwBtay0cyv6dCx0/29tNKVpsswZMW0C8 u/sJmY2WcAOmvxXAakvvDmog901FW0K2r8so55Wub0p3kXfqmkCElg0kpGjPoAEOYXWh DlC0cTNbj6LiGRqxIAIl17uv/KZjLEjtHovvE6hLDi+y8Oc1v+AWavkyjjTX5c2i0vn5 WVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p7utgJyK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id en6-20020a056402528600b004534c6c4bd7si9975101edb.433.2022.10.18.03.07.47; Tue, 18 Oct 2022 03:08:13 -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=@gmail.com header.s=20210112 header.b=p7utgJyK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbiJRKDH (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Tue, 18 Oct 2022 06:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiJRKDF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Oct 2022 06:03:05 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FC0EB14E7 for <linux-kernel@vger.kernel.org>; Tue, 18 Oct 2022 03:03:01 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id b2so21694075lfp.6 for <linux-kernel@vger.kernel.org>; Tue, 18 Oct 2022 03:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=poXckQpsmoxwNoGHA5Pmt8l8Bzt77xEo7VBtN46YHYQ=; b=p7utgJyKryujBfOPEjv6vh8HH+AWAsC6LMzl8ki2a10z+rnLThEJcuJISSoritjCUh DfF078C190eRQSRgoF8aSWQjaxGm+b+EhPjVt8eBY57aPbdVpvnypKqGEmRGMjDozG0L vLgngsclSMyY67BYvfVGWkzOORHr2rkNkY5o25x9D/gzzkRtqv5UZsPbokoREXeGF4oT tuFH8qdrEuMZYippqqqs3jNTgTuikjg/mb0Q56AZpJJg3Tzm7cYvqptO1fmmKE7ult6F dWLQC+khsl8P+AF3RhtEwSwzzGplYjlY7O0Rq7dvcsQcLyqNdHjJzobHFV7tPxjZDRJX L71A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=poXckQpsmoxwNoGHA5Pmt8l8Bzt77xEo7VBtN46YHYQ=; b=uM4Uii52mtpA5wm1SghUukwtBifHo3d5nx6u4rvURy0lAJLlEkFXnZ6vZu+/NELDzI HT9FBVBHskvJQ1M7JjFM0eDuuqFcyqY6Co/920VyyGHpiYzoKHXPAzKZOAPzU/TLynxD J0kM8k5QC3wdSr4KpYftZiHOBFOP5LJ3iMbPO1LofRLOM7UrcIIJhhIR1XtwqO+oPEa5 NKN07T/5UophG8Dr2Rc3yTxwAMyVukS0XIF4pygBp1EUqCrkGcNXL67EiSXmh8u3tivR Y74hD38+OPYc2tP/3Htz2o1HAVfmh+9rbGorsRWUXKJ4NhklgAVTALep+pkk5QhJ5fyn C0bg== X-Gm-Message-State: ACrzQf2nMWV9+U7iBIPxBLO/asgYK+skBF/PtiESumimXu/OjBfsyRZ4 k3FeXVVeFvf/pXQVH3ur+ZQ= X-Received: by 2002:ac2:4c03:0:b0:4a2:2273:89c6 with SMTP id t3-20020ac24c03000000b004a2227389c6mr650293lfq.245.1666087378946; Tue, 18 Oct 2022 03:02:58 -0700 (PDT) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id a11-20020a19f80b000000b004a45ed1ae21sm1789261lff.224.2022.10.18.03.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 03:02:58 -0700 (PDT) Date: Tue, 18 Oct 2022 10:02:57 +0000 From: Tanjuate Brunostar <tanjubrunostar0@gmail.com> To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: [PATCH] [PATCH] staging: rts5208: merge unnecessary split line Message-ID: <Y0550VcHI8NzFzzf@elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747019569473711044?= X-GMAIL-MSGID: =?utf-8?q?1747019569473711044?= |
Series |
staging: rts5208: merge unnecessary split line
|
|
Commit Message
Tanjuate Brunostar
Oct. 18, 2022, 10:02 a.m. UTC
Fix checkpatch warning by merging unnecessary split line in order to
avoid ending a line of code with a "(". The resulting code does
not affect readability and is well within the code-style guidelines
Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com>
---
drivers/staging/rts5208/sd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Tue, 18 Oct 2022, Tanjuate Brunostar wrote: > Fix checkpatch warning by merging unnecessary split line in order to > avoid ending a line of code with a "(". The resulting code does > not affect readability and is well within the code-style guidelines Thanks for the patch. You don't need the extra [PATCH] in the subject line. Actually, you don't need the parentheses at all, but that might be a matter of personal taste. julia > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > --- > drivers/staging/rts5208/sd.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c > index d1fafd530c80..4643127a87ca 100644 > --- a/drivers/staging/rts5208/sd.c > +++ b/drivers/staging/rts5208/sd.c > @@ -4501,8 +4501,7 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) > sd_card->sd_lock_notify = 1; > if (sd_lock_state && > (sd_card->sd_lock_status & SD_LOCK_1BIT_MODE)) { > - sd_card->sd_lock_status |= ( > - SD_UNLOCK_POW_ON | SD_SDR_RST); > + sd_card->sd_lock_status |= (SD_UNLOCK_POW_ON | SD_SDR_RST); > if (CHK_SD(sd_card)) { > retval = reset_sd(chip); > if (retval != STATUS_SUCCESS) { > -- > 2.34.1 > > >
On Tue, 18 Oct 2022, Tanju Brunostar wrote: > Got it. Don't top post. Reply to comments underneath the comment you are replying to. julia > > On Tue, Oct 18, 2022, 11:11 AM Julia Lawall <julia.lawall@inria.fr> wrote: > > > On Tue, 18 Oct 2022, Tanjuate Brunostar wrote: > > > Fix checkpatch warning by merging unnecessary split line in order to > > avoid ending a line of code with a "(". The resulting code does > > not affect readability and is well within the code-style guidelines > > Thanks for the patch. > > You don't need the extra [PATCH] in the subject line. > > Actually, you don't need the parentheses at all, but that might be a > matter of personal taste. > > julia > > > > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > --- > > drivers/staging/rts5208/sd.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c > > index d1fafd530c80..4643127a87ca 100644 > > --- a/drivers/staging/rts5208/sd.c > > +++ b/drivers/staging/rts5208/sd.c > > @@ -4501,8 +4501,7 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) > > sd_card->sd_lock_notify = 1; > > if (sd_lock_state && > > (sd_card->sd_lock_status & SD_LOCK_1BIT_MODE)) { > > - sd_card->sd_lock_status |= ( > > - SD_UNLOCK_POW_ON | SD_SDR_RST); > > + sd_card->sd_lock_status |= (SD_UNLOCK_POW_ON | SD_SDR_RST); > > if (CHK_SD(sd_card)) { > > retval = reset_sd(chip); > > if (retval != STATUS_SUCCESS) { > > -- > > 2.34.1 > > > > > > > > >
diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c index d1fafd530c80..4643127a87ca 100644 --- a/drivers/staging/rts5208/sd.c +++ b/drivers/staging/rts5208/sd.c @@ -4501,8 +4501,7 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) sd_card->sd_lock_notify = 1; if (sd_lock_state && (sd_card->sd_lock_status & SD_LOCK_1BIT_MODE)) { - sd_card->sd_lock_status |= ( - SD_UNLOCK_POW_ON | SD_SDR_RST); + sd_card->sd_lock_status |= (SD_UNLOCK_POW_ON | SD_SDR_RST); if (CHK_SD(sd_card)) { retval = reset_sd(chip); if (retval != STATUS_SUCCESS) {