Bluetooth: 6lowpan: Make variable header_ops constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Thu, 15 Aug 2019 05:52:55 +0000 (11:22 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Sep 2019 15:27:21 +0000 (17:27 +0200)
commit569428dabc3e2523ca2b357e7d86412df1dd1e6a
tree1b4059f381787495eb7c38a29f72c8c49582676d
parent9e45524a011107a73bc2cdde8370c61e82e93a4d
Bluetooth: 6lowpan: Make variable header_ops constant

Static variable header_ops, of type header_ops, is used only once, when
it is assigned to field header_ops of a variable having type net_device.
This corresponding field is declared as const in the definition of
net_device. Hence make header_ops constant as well to protect it from
unnecessary modification.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c