From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 5 Jan 2012 18:28:57 -0500 Subject: [U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv In-Reply-To: References: Message-ID: <201201051828.58176.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 02 January 2012 18:49:11 Christian Daudt wrote: > --- a/tools/env/fw_env.c > +++ b/tools/env/fw_env.c > > +static int fd_is_mtd(int fd) > ... > + rc = ioctl (fd, MEMGETINFO, &mtdinfo); no space before the "(" > + if (rc < 0) { > + // Failed MEMGETINFO, not MTD > + return 0; > + } else { > + // Succeeded, MTD > + return 1; > + } do not use // comments -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: