From: Dan Carpenter <dan.carpenter@oracle.com>
To: linux-fbdev@vger.kernel.org
Subject: Re: video, sm501: add OF binding to support SM501
Date: Thu, 11 Jun 2015 09:32:45 +0000 [thread overview]
Message-ID: <20150611093244.GG11734@mwanda> (raw)
In-Reply-To: <20150610155132.GK10549@mwanda>
On Thu, Jun 11, 2015 at 11:24:41AM +0200, Heiko Schocher wrote:
> static struct fb_videomode sm501_default_mode = {
> @@ -1963,6 +1965,11 @@ static int sm501fb_probe(struct platform_device *pdev)
> if (info->edid_data)
> found = 1;
> }
> + } else {
> + if (fb_mode_cmdline)
> + strcpy(fb_mode, fb_mode_cmdline);
Could you make this a strncpy()? These days strlcpy() is
unfashionable... It's sort of pedantic and it goes over the 80 char
limit but the my static checker will complain if we don't.
strncpy(fb_mod, fb_mode_cmdline,
sizeof(fb_mod) - 1);
> + else
> + strcpy(fb_mode, fb_default_mode);
regards,
dan carpenter
prev parent reply other threads:[~2015-06-11 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 15:51 video, sm501: add OF binding to support SM501 Dan Carpenter
2015-06-11 9:24 ` Heiko Schocher
2015-06-11 9:32 ` Dan Carpenter [this message]
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=20150611093244.GG11734@mwanda \
--to=dan.carpenter@oracle.com \
--cc=linux-fbdev@vger.kernel.org \
/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).