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. Thanks, Richard ------------------------------------------------------------------------------ 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 Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel