netdevsim: convert to DEFINE_SHOW_ATTRIBUTE
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 12 Dec 2018 16:40:07 +0000 (11:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 00:00:48 +0000 (16:00 -0800)
commite6652f0ff037d3cad81b82afd4f75c964ef611ec
tree8ddeabbbfc64165c9dbd945d3d793d6141e83418
parent9a58ee2f00fb558297c44f69833e408fdadd26db
netdevsim: convert to DEFINE_SHOW_ATTRIBUTE

Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bpf.c