Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3966649rwi; Sat, 22 Oct 2022 03:03:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZMgi87pMPEEtFRdcDlw3/PQzFQ0vxdTu2HsRvshDMev9pCBmXiUOq1pyTL4BDke+H/9Ul X-Received: by 2002:a17:902:6bc5:b0:183:4bef:1b20 with SMTP id m5-20020a1709026bc500b001834bef1b20mr23478877plt.158.1666432999858; Sat, 22 Oct 2022 03:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666432999; cv=none; d=google.com; s=arc-20160816; b=SkQF4yV5q+ibHM2lSwDUvThDI4nB2pOhoBiHO/XngjTGqw1y26mHqBhVMe19A8PR/U +2HIYpIpyQ8GsjdwVbMfMJLiQHaWebG6MDyaeQN3QOAGskWPXR+sqVejxSpq2D2VPrW1 wLgt7XEVRLwvvQPG/+SajnT0a6ZWNb6dyZ5gaK2JwQPcTHksictTIX/djms+SQnxaQp/ wE6fkvF/U6PPQxg6dsAy+6oJs/vSnUAa0PAE0f9bJQwzeAduaK0sV6B9Rt6ULZnzys61 v2a1c5ihzBdc5kaHDn9b87LUUdIABj2/MZ5Z8c34I5Tjq8KN6XgyCtlo4NMe3JWNHp8C 2Btg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4IdLhdqZd5jMuGhUlOGaIRaKi0tmcMH8Qv7JaFOJC9E=; b=W31WX6Oue5J0oA/3gfrGMW9zJSDWi4ncdDQ89/gw6gCdZzbMBwvTVUfTxcXg4ZH4x2 uUh7GPCsrI5TaKeH5Nlg7AoGDAGsK0QKhtXDPMYHp5DUINFWjrrCLeCB0o/7u2UoLfT3 jrFIrNIfhnujaDXD8eqCA0ZCib7+aXpmQjU6UtZ3UWinDXtnBr5pN/jflM27+j+chckb NXpLUtrvBJTKFgUwpOIZtS2yaXOVmxGtyqJxu5zsna4QskghadKKf9z4NMZbQ4axOaMQ jwJu+R18vYlcYuZ5jo5dg5xSC5I9R5vsy8waeol5KZs6QKKdzT39/xvnHO8EsAtwau2R R1hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g2JDkIm9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w63-20020a638242000000b0045ecb2679f1si631558pgd.45.2022.10.22.03.03.07; Sat, 22 Oct 2022 03:03:19 -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=g2JDkIm9; 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 S230315AbiJVJRV (ORCPT + 99 others); Sat, 22 Oct 2022 05:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbiJVJQX (ORCPT ); Sat, 22 Oct 2022 05:16:23 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 846B02DF46C for ; Sat, 22 Oct 2022 01:30:45 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id g11so3048055qts.1 for ; Sat, 22 Oct 2022 01:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4IdLhdqZd5jMuGhUlOGaIRaKi0tmcMH8Qv7JaFOJC9E=; b=g2JDkIm9iqwOd5ul/PFvbxFQ0KVH6dqNEpQGDpQLgoWia1h40REPOMcjc1exETkDeB hXPC85D3AtRyHnNcsT2P7FuhK8a9wFJf59uIa6otT/lJREud0IosAGsLwLc4w9g08EWz wPxJmv8zOK+lwOOcZOA6meGdffR2SPxmk4e0BLEK7iyTfBWetK5eLHhtkD1UW6EtTaLE h6quAoH73eDJKWB+yO8IlNNnH3liRRzhJRABD+oesjYqWmeRcA0KAznFVn1aQl8nzigU AhQTcnijDbjYrTGmKqXZpFAv4CgKLi6XyoV9EjZb32zPEva2MJPqHzAMg/2DkMRTq4he xTcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4IdLhdqZd5jMuGhUlOGaIRaKi0tmcMH8Qv7JaFOJC9E=; b=tF/9DfVjiNW4gTp5c2h2VirHzs2DJs8FqThFvC20C4IBOoBEAVoeU1XS9jyCrp/9WW rkRt2t4PjAM73H1cf3zqsef2oLwVMt15BvisdNcgJc83SNKqpn9wGfKenrioRohc2okV RQCQm5/+JfdiJgPuG+o5OXwxQhdZz8PyTyBBcix+esvzxt3oHiXpnP4oJF672dUuTJHH oRSpGsI9a+QY72rhhb+dqnu7+4E+WfzbT/y82xdudaA1zLsMnMMcp2IkHMeGbN6090hl lWBhwNn9kVkVvBr4CH2Jhlv6XrNAgeWBc1N7BpNcbsXEy/1lEDQ0NDUURyRpUTKl1tXw UOPw== X-Gm-Message-State: ACrzQf3r0L2GP5vC05AuDKdvoDLcz1qqbkbDHi4dqQqp02rNKb6z21Dy uL3inJ/ydy+GGPmq8SiVvUYJ3TnWC9zchVxvTA0= X-Received: by 2002:a05:622a:c5:b0:39c:f1c2:6732 with SMTP id p5-20020a05622a00c500b0039cf1c26732mr20225224qtw.588.1666427343453; Sat, 22 Oct 2022 01:29:03 -0700 (PDT) MIME-Version: 1.0 References: <20221022070612.13009-1-tanjubrunostar0@gmail.com> <20221022070612.13009-5-tanjubrunostar0@gmail.com> In-Reply-To: From: Tanju Brunostar Date: Sat, 22 Oct 2022 09:28:51 +0100 Message-ID: Subject: Re: [PATCH v3 4/6] staging: vt6655: refactor long lines of code in s_vGenerateTxParameter To: Greg KH Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" 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: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 22, 2022 at 9:17 AM Greg KH wrote: > > On Sat, Oct 22, 2022 at 07:06:10AM +0000, Tanjuate Brunostar wrote: > > fix checkpatch errors by refactoring long lines of code in the function: s_vGenerateTxParameter > > > > Signed-off-by: Tanjuate Brunostar > > --- > > drivers/staging/vt6655/rxtx.c | 67 ++++++++++++++++++++++++----------- > > 1 file changed, 46 insertions(+), 21 deletions(-) > > > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > > index dc853b83459b..951d4172e9f2 100644 > > --- a/drivers/staging/vt6655/rxtx.c > > +++ b/drivers/staging/vt6655/rxtx.c > > @@ -839,7 +839,8 @@ s_vFillCTSHead(struct vnt_private *pDevice, > > } > > > > if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) { > > - if (byFBOption != AUTO_FB_NONE && uDMAIdx != TYPE_ATIMDMA && uDMAIdx != TYPE_BEACONDMA) { > > + if (byFBOption != AUTO_FB_NONE && uDMAIdx != > > + TYPE_ATIMDMA && uDMAIdx != TYPE_BEACONDMA) { > > Don't break lines like this, this is now much harder to read. > > It should look like: > if (byFBOption != AUTO_FB_NONE && > uDMAIdx != TYPE_ATIMDMA && > uDMAIdx != TYPE_BEACONDMA) { > > If you want to make it more readable, right? > > And that is the main point here, the coding style is to make it readable > to us humans, the compiler doesn't care. > > Your change makes the logic harder to understand, not easier, which is a > step backwards. > > We write code for developers first (as we have to maintain it), and the > compiler second. > > thanks, > > greg k-h Got it