[U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv

Mike Frysinger vapier at gentoo.org
Fri Jan 6 00:28:57 CET 2012


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: <http://lists.denx.de/pipermail/u-boot/attachments/20120105/5b0ed0ae/attachment.pgp>


More information about the U-Boot mailing list