diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-14 05:51:52 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 04:53:43 (GMT) |
commit | ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54 (patch) | |
tree | 942dffdc67367bd23314c12ebabfd3ce4ce68735 /drivers/net/qlge/qlge_main.c | |
parent | 6c8c2513c86c589a819c161c9abbdea2a3d56f5e (diff) | |
download | linux-fsl-qoriq-ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54.tar.xz |
qlge: make nic_operations struct const
The struct nic_operations is just function pointers and should be
declared const for added security.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 5bb3119..f61e717 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -4412,12 +4412,12 @@ error: rtnl_unlock(); } -static struct nic_operations qla8012_nic_ops = { +static const struct nic_operations qla8012_nic_ops = { .get_flash = ql_get_8012_flash_params, .port_initialize = ql_8012_port_initialize, }; -static struct nic_operations qla8000_nic_ops = { +static const struct nic_operations qla8000_nic_ops = { .get_flash = ql_get_8000_flash_params, .port_initialize = ql_8000_port_initialize, }; |