[En-Nut-Discussion] Fix in PhatVol

Ole Reinhardt ole.reinhardt at embedded-it.de
Mon Sep 15 15:32:33 CEST 2014


Hi Uwe,

Am 15.09.2014 15:14, schrieb Uwe Bonnes:
> Wouldn't it be clearer to use
>  *vol = 0
> instead of
>  dev->dev_dcb = 0;

No, it would not. Have a loog again :)

vol is a local copy of dev->dev_dcb.

So setting *vol to 0 is not the same as setting dev->dev_dcb to 0. And
setting vol to 0 would just set the local copy to null.

Bye,

Ole

-- 
kernel concepts GmbH            Tel: +49-271-771091-14
Sieghuetter Hauptweg 48         Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de


More information about the En-Nut-Discussion mailing list