From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Daeseok Youn <daeseok.youn@gmail.com>,
plagnioj@jcrosoft.com, Antonino Daplas <adaplas@gmail.com>
Cc: jg1.han@samsung.com, laurent.pinchart@ideasonboard.com,
robdclark@gmail.com, daniel.vetter@ffwll.ch,
Julia.Lawall@lip6.fr, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] video : remove redundant error check
Date: Tue, 26 Aug 2014 10:34:02 +0000 [thread overview]
Message-ID: <53FC629A.2050101@ti.com> (raw)
In-Reply-To: <20140516093123.GA17245@devel.8.8.4.4>
[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]
On 16/05/14 12:31, Daeseok Youn wrote:
> It doesn't need to check "err" for printing info.
> And also use pr_info instead of printk.
>
> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> ---
> V2: removes unneeded lines for sending a patch
>
> drivers/video/fbdev/i810/i810_main.c | 7 +++----
> 1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c
> index bb674e4..15cb397 100644
> --- a/drivers/video/fbdev/i810/i810_main.c
> +++ b/drivers/video/fbdev/i810/i810_main.c
> @@ -1910,13 +1910,12 @@ static void i810fb_find_init_mode(struct fb_info *info)
>
> for (i = 0; i < par->ddc_num + 1; i++) {
> err = i810_probe_i2c_connector(info, &par->edid, i);
> - if (!err)
> + if (!err) {
> + pr_info("i810fb_init_pci: DDC probe successful\n");
> break;
> + }
> }
>
> - if (!err)
> - printk("i810fb_init_pci: DDC probe successful\n");
> -
> fb_edid_to_monspecs(par->edid, specs);
>
> if (specs->modedb == NULL)
>
I don't know... I think I personally like more the original version. In
fact, the whole print looks quite useless to me, or at least it should
be a debug print.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-08-26 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-16 9:31 [PATCH V2] video : remove redundant error check Daeseok Youn
2014-08-26 10:34 ` Tomi Valkeinen [this message]
2014-08-27 10:00 ` DaeSeok Youn
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=53FC629A.2050101@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=Julia.Lawall@lip6.fr \
--cc=adaplas@gmail.com \
--cc=daeseok.youn@gmail.com \
--cc=daniel.vetter@ffwll.ch \
--cc=jg1.han@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=plagnioj@jcrosoft.com \
--cc=robdclark@gmail.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;
as well as URLs for NNTP newsgroup(s).