[coreboot] [commit] r6373 - in trunk/src/superio: fintek/f71805f fintek/f71859 fintek/f71863fg fintek/f71872 fintek/f71889 intel/i3100 ite/it8712f ite/it8716f smsc/lpc47b272 smsc/lpc47b397 smsc/lpc47m10x smsc...

Stefan Reinauer stefan.reinauer at coreboot.org
Mon Feb 21 04:02:44 CET 2011


On 2/19/11 6:51 AM, repository service wrote:
> Modified: trunk/src/superio/smsc/lpc47n227/superio.c
> ==============================================================================
> --- trunk/src/superio/smsc/lpc47n227/superio.c	Thu Feb 17 21:48:45 2011	(r6372)
> +++ trunk/src/superio/smsc/lpc47n227/superio.c	Sat Feb 19 15:51:31 2011	(r6373)
> @@ -116,7 +116,7 @@
>   void lpc47n227_pnp_enable(device_t dev)
>   {
>   	pnp_enter_conf_state(dev);
> -	lpc47n227_pnp_set_enable(dev, (dev->enabled) ? 1 : 0);
> +	lpc47n227_pnp_set_enable(dev, !!dev->enabled);
>   	pnp_exit_conf_state(dev);
>   }

How's this different? I like the ?: notion more than the :: notion.




More information about the coreboot mailing list