firewire: core: correct range of block for case of switch statement
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 10 Aug 2024 07:04:03 +0000 (16:04 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 10 Aug 2024 07:04:03 +0000 (16:04 +0900)
commitebb9d3ca8f7efc1b6a2f1750d1058eda444883d0
tree72ddf5a3f740314c4de921cf1b946ccdc2c5d8bd
parente4c8b8014f3fb6a324ba388fc676d176a35bcdb8
firewire: core: correct range of block for case of switch statement

A commit d8527cab6c31 ("firewire: cdev: implement new event to notify
response subaction with time stamp") adds an additional case,
FW_CDEV_EVENT_RESPONSE2, into switch statement in complete_transaction().
However, the range of block is beyond to the case label and reaches
neibour default label.

This commit corrects the range of block. Fortunately, it has few impacts
in practice since the local variable in the scope under the label is not
used in codes under default label.

Fixes: d8527cab6c31 ("firewire: cdev: implement new event to notify response subaction with time stamp")
Link: https://lore.kernel.org/r/20240810070403.36801-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-cdev.c