Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2768004rdg; Mon, 16 Oct 2023 14:28:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNyRVtK47f94TrYf8mPJ/L0cMmeBrTEwCWaDQ85NNCDHjVgaAiAL5FIS/rPINZhgu6HpIZ X-Received: by 2002:a05:6870:f810:b0:1dd:4271:3a88 with SMTP id fr16-20020a056870f81000b001dd42713a88mr341716oab.58.1697491702289; Mon, 16 Oct 2023 14:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697491702; cv=none; d=google.com; s=arc-20160816; b=VzBDFzWVE5/VQrvxtsPoOQEghcoYofo6WNzNKx8iQbcndij+8JbOboSlr//quk8Khp ekrLKnvE8tuq0bHQoZ3aNgTZSfvsDkIE/IzIoFn7sfTKHGNDY2aEmzkon5gc+wSt3nsJ SZgYRgrqNMbL3giTc1QOCF44u8plbM5NjZqq2FtE1GQTsf3HVGthxqe/3NAP77/bomCt hTtNZm97Wlerjka4qzbIQW6a2i2CDeV+TQy0HMc24XDL4kuVSbbomo5fsPpm06re3TMy BGfiGzebfQfUHfcmRHCJWucitj1kXEUmYng4DPZa7kslO2Diqv+7Hdyz1UbXAgib3gyC Mf1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gz5uPaO0PhjsKNyfoC2qEvGlRXHfU1lsrF3ISDqvnPs=; fh=ut1TmuloeolOV+lkQO3uPQX5h2O3rJMYbK76UhWaabk=; b=fDuLE4atnls/ZalHDpRZVrW+tKIjBkzUwYkxEkm3M3b1GtcCjmHsny8n1eOWOGzoiN mtVn6v7FnBLDQ46fztDaWMCPj8FIA3xSPmfv8Jj0F03C8YDARwrxw6PLUkAeAUhi59aZ oKRkKElvtP40OYQkfw/tz6aaR9uRx+TKa9eXuej6X0nl2AYL1mi8ynUw2A9O9VcIfD3/ qFag7A9P4dOct5Agj0lPFsMLQKOq681vlrW6BDda0l4c2IlD7EhQMSPBhT3QOpsNd85w 2EEiRGCUrWHmmciTHmbflrMTnbFZhru6qHmIkl3z6vBw2o5hoQsRqAwb6L10uHHOIiyX 0Yiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LHAbKV6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n190-20020a6327c7000000b005637e28270fsi208759pgn.243.2023.10.16.14.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 14:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LHAbKV6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0FF0F8079334; Mon, 16 Oct 2023 14:28:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233329AbjJPV2O (ORCPT + 99 others); Mon, 16 Oct 2023 17:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJPV2M (ORCPT ); Mon, 16 Oct 2023 17:28:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4075EA2 for ; Mon, 16 Oct 2023 14:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697491691; x=1729027691; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YuEvxvbRQHuoGsy33W3UvZxxg9UVkl9Dv986sm//sCM=; b=LHAbKV6QJI2Bw3Tyr8a4Zu0z0d3yewn31TFdXDOG9iHPc3j5ocBCLR6T cLKwu5X+UZboQPXxJuCRgI/XKuZ22VvvaXxoA/nZEvgKJpN7YHsg4B+Ao HzIKf3lqRE7niQIIBswlrc2WvOxvlgOhU8/1RaU0BkfJ/xWwlomjpgPkv s0TQmCNuTCnCSs/K9MSRzbLe7Y3RA986k7w3EwXq1jZ+mvnbZWfpT/2P5 EICYJnqNZ1dubaOd6GeGmPJ4g+JyPwvBFxnTjp5s3w94DbNbN4MIfnJbV VU6XERoychwdQ67NfO8DRRw+iA+RUEyuKALhnwN2N3/UmeGSsLXKJ90Tw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="449865295" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="449865295" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 14:27:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="3797840" Received: from yckhoo-mobl2.gar.corp.intel.com (HELO intel.com) ([10.215.157.119]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 14:27:16 -0700 Date: Mon, 16 Oct 2023 23:27:03 +0200 From: Andi Shyti To: Greg KH Cc: Gilbert Adikankwu , outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: emxx_udc: Remove unnecessary parentheses around condition tests Message-ID: References: <2023101658-unmoral-survival-25cf@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023101658-unmoral-survival-25cf@gregkh> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 14:28:20 -0700 (PDT) > > Fix 47 warnings detected by checkpatch.pl about unnecessary parenthesis > > around condition tests. > > And as I have stated numerous times in the past, they are not > "unnecessary" at all, and provide a valuable hint to the developer as to > what is the ordering involved. > > So you can ignore this checkpatch warning please, it's not valid as far > as I'm concerned for the subsystems that I maintain in the kernel. I find this very confusing, though: if (((ep->epnum == 0) || (data & (1 << ep->epnum)) == 0)) Andi