summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/netxen
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-02-22 00:11:17 +0530
committerDavid S. Miller <davem@davemloft.net>2017-02-22 15:39:09 -0500
commit0ccea2210c7ed486c688cd05fd1b674d95ef9894 (patch)
treeb10741d7f1cccde418f2a7dfd1db73764365f7a3 /drivers/net/ethernet/qlogic/netxen
parenta577ca6badb5261d3fa1bcbb3332ae7874f1a3a2 (diff)
downloadlinux-stable-0ccea2210c7ed486c688cd05fd1b674d95ef9894.tar.gz
linux-stable-0ccea2210c7ed486c688cd05fd1b674d95ef9894.tar.bz2
linux-stable-0ccea2210c7ed486c688cd05fd1b674d95ef9894.zip
qlogic: qlcnic_sysfs: constify bin_attribute structures
Declare bin_attribute structures as const as they are only passed as an arguments to the functions device_remove_bin_file and device_create_bin_file. These function arguments are of type const, so bin_attribute structures having this property can be made const too. Done using Coccinelle: @r1 disable optional_qualifier @ identifier i; position p; @@ static struct bin_attribute i@p = {...}; @ok1@ identifier r1.i; position p,p1; @@ ( device_remove_bin_file(...,&i@p) | device_create_bin_file(..., &i@p1) ) @bad@ position p!={r1.p,ok1.p,ok1.p1}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct bin_attribute i; Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen')
0 files changed, 0 insertions, 0 deletions