[PATCH 1/2] mtd-utils: more style fixups

Mike Frysinger vapier.adi at gmail.com
Wed Oct 20 02:58:37 EDT 2010


On Wed, Oct 20, 2010 at 02:45, Brian Norris wrote:
> -               ret = ioctl(fd, MTDFILEMODE, (void *) MTD_MODE_RAW);
> +               ret = ioctl(fd, MTDFILEMODE, (void *)MTD_MODE_RAW);

i'd just drop the cast completely.  ioctl() is a vararg func so there
is no need to tweak the type.
-mike



More information about the linux-mtd mailing list