[Q] (intentionally) useless code in pinmux_config_gpio()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi

Looking at pinmux_config_gpio() in drivers/sh/pfc.c I came across code, 
that doesn't seem to have any effect:

	while (1) {
		...
		switch (cfg_mode) {
		case GPIO_CFG_DRYRUN:
			if (condition)
				continue;
			break;
		...
		}
	}

So, whether the condition in "if" above is true or false the loop just 
continues. Evaluation of the condition doesn't have any effect either. Is 
this really how it was intended?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux OMAP]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux