From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4C35C433EF for ; Fri, 22 Apr 2022 16:06:33 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nhvXq-00076T-Ts; Fri, 22 Apr 2022 11:50:06 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nhvSf-0005jk-17 for kernelnewbies@kernelnewbies.org; Fri, 22 Apr 2022 11:44:45 -0400 Received: by mail-pg1-x52f.google.com with SMTP id h5so7621664pgc.7 for ; Fri, 22 Apr 2022 08:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FkeEelSnKxGLTwo42yt65S9ynAEnhcinA9T3Z/vSAoA=; b=Qr5u1VDxiiiaVedoSeRUOml3hwVPjji7qwIpjadxkEKtZuxaxfvQ/kGAVp4N/cAVxB OPZ+8CNHIA8+KBqCFiPB8hrLs4Ksw+7+Nm8gK9fNBvNyLULh8hQIHz+G9T4fYXxdWYBQ fxTYT2mtcYLtRrvg6TOTRGF3AxKjq89dlCqsxH3bGa2uPWv/rYbR+PNXzzLgVGDL67+7 WZvkQBu2Kbq+XupAC/+H3QDi65/jPwHy9PWAaYjgwUvzMUdmqJpC5j6qnXcUPxGXHt68 rUM0kfN7WjbnLFvztcy09y5W7L+BD4nYrhHXDB3KnDEtrRkUxtRg8MdJvfdpWaFPAHMg yIRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FkeEelSnKxGLTwo42yt65S9ynAEnhcinA9T3Z/vSAoA=; b=1u49Adg3i5y2DIdcAe//GCnblmkno+qAm8iHnKZrmJs2pcZfRZcpIOrJ7DxsJJ9tG/ Z7jUBbYzTronMdCfrICsas2YLLXYm7o8pFd35JRhjcRASpBbXXQZHdEyEpjPXli1+/lc NXemrJ7fwc8ksW62qTwH1GoGDDQoGl/m74vu/HOpMB6cTxVvHyZedQ0u3uqli6nV/C8M Y/zFGpZDepWkAkbX5l6m1eioBZuv1IawbCzMrD6n98d/YIPehPP7TiGcisn3IgzcmWdK aM2KplsbDJ9rt8VQPlKN/XIoKtjzrx0OHyV8WjWoXzgqCQkJkGwtSe5d2DyoaIqTY9uv yKag== X-Gm-Message-State: AOAM530nm4fLgltwOvvmXRqW1UdKs/HXkgi4yEHyLKle71TLDM/Tz1hU hXTjSfidUs/9Q6OPcS4cLc4SwJuo38Q= X-Google-Smtp-Source: ABdhPJyMPaZGCGWT2WlcYRu34Z2y39v3Lj48IJvllFfE2KajpyIaZFSqSPMp217x4EZpoybSxxBUjg== X-Received: by 2002:a63:846:0:b0:39d:9a9d:1178 with SMTP id 67-20020a630846000000b0039d9a9d1178mr4389335pgi.225.1650642283553; Fri, 22 Apr 2022 08:44:43 -0700 (PDT) Received: from ArchDesktop ([14.100.36.163]) by smtp.gmail.com with ESMTPSA id j6-20020aa79286000000b004fdf02851eesm2847130pfa.4.2022.04.22.08.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 08:44:43 -0700 (PDT) Date: Fri, 22 Apr 2022 23:44:40 +0800 From: Solomon Tan To: Greg KH Subject: Re: Coding style operator precedence Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Fri, Apr 22, 2022 at 04:59:38PM +0200, Greg KH wrote: > On Fri, Apr 22, 2022 at 10:08:54PM +0800, Solomon Tan wrote: > > Make it obvious when people read the code as we do not always remember > the precedence order. We write code for people first, compilers second. Understood. Thanks for the advice, Greg. :) > > thanks, > > greg k-h Cheers, Solomon _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies