Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bareudp: constify device_type declaration

device_type may be declared as const.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Link: https://lore.kernel.org/r/20201202122324.564918-1-jonas@norrbonn.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jonas Bonn and committed by
Jakub Kicinski
cec85994 db774712

+1 -1
+1 -1
drivers/net/bareudp.c
··· 522 522 }; 523 523 524 524 /* Info for udev, that this is a virtual tunnel endpoint */ 525 - static struct device_type bareudp_type = { 525 + static const struct device_type bareudp_type = { 526 526 .name = "bareudp", 527 527 }; 528 528