public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Phil Sutter <phil@nwl.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 10/10] mvebu: ds414: Implement Synology specific command set
Date: Wed, 13 Jan 2016 10:42:45 +0100	[thread overview]
Message-ID: <20160113094245.GA4253@orbyte.nwl.cc> (raw)
In-Reply-To: <56960832.1030809@denx.de>

Hi Stefan,

On Wed, Jan 13, 2016 at 09:17:54AM +0100, Stefan Roese wrote:
> I'm preparing a branch for Luka to pull from. With all the pending
> mvebu patches included. And noticed a small issue with this patch.
> See below...
> 
> On 25.12.2015 14:41, Phil Sutter wrote:
[...]
> > +static int do_syno(cmd_tbl_t *cmdtp, int flag,
> > +                   int argc, char * const argv[])
> > +{
> > +	const char *cmd;
> > +	int ret;
> > +
> > +	if (argc < 2)
> > +		goto usage;
> > +
> > +	cmd = argv[1];
> > +	--argc;
> > +	++argv;
> > +
> > +	if (!strcmp(cmd, "populate_env"))
> > +		ret = do_syno_populate(argc, argv);
> > +	else if (!strcmp(cmd, "clk_gate"))
> > +		ret = do_syno_clk_gate(argc, argv);
> > +
> > +	if (ret != -1)
> > +		return ret;
> 
> Here I get this warning:
> 
> board/Synology/common/cmd_syno.c: In function 'do_syno':
> board/Synology/common/cmd_syno.c:216:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   if (ret != -1)
>      ^
> 
> I've changed this to init ret to 0 in my branch. Let me know if this
> is okay with you.

Yes, sure! I have to admit, I didn't spend much time on this file. It
was always merely for fixing the "real" issues.

Thanks, Phil

  reply	other threads:[~2016-01-13  9:42 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1451050886-20124-1-git-send-email-phil@nwl.cc>
2015-12-25 13:41 ` [U-Boot] [PATCH v3 01/10] drivers/pci: Fix for debug builds without CONFIG_PCI_ENUM_ONLY Phil Sutter
2016-01-13 15:12   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 02/10] README: Review the u-boot porting guide list Phil Sutter
2016-01-13 15:12   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 03/10] axp: Fix debugging support in DDR3 write leveling Phil Sutter
2016-01-13 15:12   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 04/10] drivers/pci/pci_mvebu: Fix for boards with X4 lanes Phil Sutter
2016-01-13 15:13   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 05/10] mvebu: axp: refactor board_sat_r_get() and caller Phil Sutter
2016-01-13 15:13   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 06/10] mvebu: Introduce kconfig symbols for SoC variants Phil Sutter
2016-01-13 15:13   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 07/10] mvebu: axp: Rename MV_DDR_32BIT to CONFIG_DDR_32BIT Phil Sutter
2016-01-13 15:13   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 08/10] mvebu: Add rudimental MV78230 support Phil Sutter
2016-01-13 15:13   ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 09/10] mvebu: Support Synology DS414 Phil Sutter
2016-01-13 15:13   ` Tom Rini
2016-01-13 15:24     ` Stefan Roese
2016-01-13 15:41       ` Tom Rini
2015-12-25 13:41 ` [U-Boot] [PATCH v3 10/10] mvebu: ds414: Implement Synology specific command set Phil Sutter
2016-01-13  8:17   ` Stefan Roese
2016-01-13  9:42     ` Phil Sutter [this message]
2016-01-13 15:16   ` Tom Rini

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=20160113094245.GA4253@orbyte.nwl.cc \
    --to=phil@nwl.cc \
    --cc=u-boot@lists.denx.de \
    /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