Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp952478ybe; Wed, 4 Sep 2019 10:09:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVIELDeFI1GanCdR6dfEbKq+48byT27IB/NxIbHEjjN0cr0fM/R9vI+yFkgCBpoxBc0M0c X-Received: by 2002:a65:690b:: with SMTP id s11mr33643798pgq.10.1567616960184; Wed, 04 Sep 2019 10:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567616960; cv=none; d=google.com; s=arc-20160816; b=VRedEjL/S9DLy3GiD8sL0zAiBvMWTZ7nAA3FiMlrOdc/sRO71/ltxNvn0i+7CsDDSs 4NtFhsntGxw91ePnnSKkl+nM+53VEqD+5gvuvNyI3n0+IjQWzpMSbhvTOHHpUAOOmY0A 8ulDLJaEd6y3ddYtxaCe29jCIGnOJWlXYITa8Rj5CM3AIAtHrM+JrTxeINoTkBEfAhPX XHd2lUsU6CHLPreASA8mYRq7BS0uFIw6xZ0lEAr1t3rIxa0ZeWEA9q+dKi7ubRdD47Rq CRe0T4ksHVhEoSDtecvGEhYF7UKbT8XMch3shNF/47eDE+ddsIzNw4Go4NfX7paZRd79 plIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e1DlnPOCLjbVpcx0455nHJEeDc4fPyRunx3yaMICMCg=; b=jvAEMTxMK8yCKMwObO9U7adEMHJekTfYfqCdXnyi2Xlu3pakBrukZzUjJLebE8kWIF /Yqd3eFxrPV29Qikll0IXt/8AxicBuwO439jsrNPjH5Ev+/9BeKf6phC1VBeKjlpkbcm ptH1nPUFhGiz++oHae2RLUACSdOz5HQkgPibniGz9te8lEeW8G5eROqpVm0qxduvQ8ZJ UoUAL3n7yLKbO0h4EHTmj5dKuEXrEHXA/IVMH4Xk+bitF/oLiPQVYZqXB7baqdGse925 pZ8KJUs+s41AG8ZNRWcRJsK+2DmB4nSdGGJpngC/1BKTcTboh9YO4FrW+akreVtJC75w ZRfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si10418842pfc.222.2019.09.04.10.08.56; Wed, 04 Sep 2019 10:09:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732263AbfIDRGK (ORCPT + 99 others); Wed, 4 Sep 2019 13:06:10 -0400 Received: from valentin-vidic.from.hr ([94.229.67.141]:32795 "EHLO valentin-vidic.from.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732115AbfIDRGK (ORCPT ); Wed, 4 Sep 2019 13:06:10 -0400 X-Virus-Scanned: Debian amavisd-new at valentin-vidic.from.hr Received: by valentin-vidic.from.hr (Postfix, from userid 1000) id 515453A341; Wed, 4 Sep 2019 19:05:43 +0200 (CEST) Date: Wed, 4 Sep 2019 19:05:42 +0200 From: Valentin =?utf-8?B?VmlkacSH?= To: David Laight Cc: Al Viro , Valdis Kletnieks , Greg Kroah-Hartman , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] staging: exfat: cleanup braces for if/else statements Message-ID: <20190904170536.GA12633@valentin-vidic.from.hr> References: <20190903164732.14194-1-vvidic@valentin-vidic.from.hr> <20190903173249.GL1131@ZenIV.linux.org.uk> <20190903181208.GA8469@valentin-vidic.from.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 09:38:55AM +0000, David Laight wrote: > From: Valentin Vidic > > Sent: 03 September 2019 19:12 > > On Tue, Sep 03, 2019 at 06:32:49PM +0100, Al Viro wrote: > > > On Tue, Sep 03, 2019 at 06:47:32PM +0200, Valentin Vidic wrote: > > > > + } else if (uni == 0xFFFF) { > > > > skip = TRUE; > > > > > > While we are at it, could you get rid of that 'TRUE' macro? > > > > Sure, but maybe in a separate patch since TRUE/FALSE has more > > calls than just this. > > I bet you can get rid of the 'skip' variable and simplify the code > by using continue/break/return (or maybe goto). Seems it is not so simple - the value of skip is used to control the behavior in the next loop iteration based on the current uni value. So maybe just replace skip with a less confusing name. -- Valentin