[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200602055639.GB89266@VM20190228-100.tbsite.net>
Date: Tue, 2 Jun 2020 13:56:39 +0800
From: Baolin Wang <baolin.wang@...ux.alibaba.com>
To: Markus Elfring <Markus.Elfring@....de>
Cc: iommu@...ts.linux-foundation.org,
Jörg Rödel <joro@...tes.org>,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: iommu: Improve exception handling in iommu_group_alloc()
On Tue, Jun 02, 2020 at 07:01:02AM +0200, Markus Elfring wrote:
> >> * I suggest to avoid the specification of duplicate function calls.
> >> Will it be helpful to add a few jump targets?
> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162#n455
> >
> > I don't think it is helpful or readable to add some jump targets here,
> > since the exception handling is very simple here.
>
> Do you disagree to the application of the Linux coding style then
> for the recommended exception handling?
No, that's not what I mean. My point is the exception handling in this
patch is simple and no need to add 'goto' statement which does not help
to improve readability. And I agree it is helpful for the cases where a
function exits from multiple locations and more same cleanup work need
to do.
Powered by blists - more mailing lists