From: SF Markus Elfring <elfring@users.sourceforge.net>
To: Daniele Nicolodi <daniele@grinta.net>, linux-media@vger.kernel.org
Cc: Julia Lawall <julia.lawall@lip6.fr>,
Hans Verkuil <hverkuil@xs4all.nl>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org
Subject: Re: [media] spca500: Use common error handling code in spca500_synch310()
Date: Fri, 22 Sep 2017 20:44:23 +0000 [thread overview]
Message-ID: <ce9f77e1-aeb6-65ac-9224-33e12d81d641@users.sourceforge.net> (raw)
In-Reply-To: <25a82438-8760-66fd-23d3-24569078f906@grinta.net>
> No one needs to argue about keeping it the way it is.
I got an other impression in this case after a bit of information
was presented which seems to be contradictory.
> I don't see any improvement brought by the proposed change,
Do you care if the source code for an error message is present only once
in this function?
> other than making the code harder to read.
I suggest to reconsider this concern.
> I find goto statements hard to read, because they inherently make some
> information non local. They are justified in error path handling,
> if the error path only unwinds what the function did early on.
> That's not the case here.
I am looking also for change possibilities without such a restriction.
> The same applies to dozens of patches you proposed recently.
I proposed some software updates to reduce a bit of code duplication.
Do you find any corresponding approaches useful?
Regards,
Markus
next prev parent reply other threads:[~2017-09-22 20:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-22 17:06 [PATCH] [media] spca500: Use common error handling code in spca500_synch310() SF Markus Elfring
2017-09-22 17:09 ` Julia Lawall
2017-09-22 17:40 ` SF Markus Elfring
2017-09-22 17:41 ` Julia Lawall
2017-09-22 17:46 ` SF Markus Elfring
2017-09-22 18:27 ` Daniele Nicolodi
2017-09-22 20:44 ` SF Markus Elfring [this message]
2017-09-22 18:37 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce9f77e1-aeb6-65ac-9224-33e12d81d641@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=daniele@grinta.net \
--cc=hverkuil@xs4all.nl \
--cc=julia.lawall@lip6.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox