On Mon, Mar 05, 2018 at 08:36:58AM +0000, Anders Selhammer wrote:
> Why initialize the local variable datalen to zero at start? Start value is 
> not used.

The initialization was from before.  This patch did not change that.
It only moved the line down.

But you are right.  The new code adds a "default" to the switch/case.
Previously, the initialization was needed to avoid a compiler warning.


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Linuxptp-devel mailing list

Reply via email to