]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: fix missing break in switch
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 18 Jul 2018 01:17:33 +0000 (20:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 22:25:25 +0000 (15:25 -0700)
commitf2528abd3940268701e5651da2a82a0b3de671dd
tree31483ce274788fcc3c4ef1ae8faa4895c329aa65
parent7e6c715c24de446dd7c41af20611c28ff8fa2d55
ptp: fix missing break in switch

It seems that a *break* is missing in order to avoid falling through
to the default case. Otherwise, checking *chan* makes no sense.

Fixes: 7f271d79a473 ("ptp: Allow reassigning calibration pin function")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c