diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-14 05:51:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-14 21:53:43 -0700 |
commit | ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54 (patch) | |
tree | 942dffdc67367bd23314c12ebabfd3ce4ce68735 /drivers/net/qlge/qlge.h | |
parent | 6c8c2513c86c589a819c161c9abbdea2a3d56f5e (diff) | |
download | linux-ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54.tar.gz linux-ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54.tar.bz2 linux-ef9c7ab4a97d53d9cb4912d13e142f52a30ecd54.zip |
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.h')
-rw-r--r-- | drivers/net/qlge/qlge.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h index 4757c59a07a2..d32850715f5c 100644 --- a/drivers/net/qlge/qlge.h +++ b/drivers/net/qlge/qlge.h @@ -2134,7 +2134,7 @@ struct ql_adapter { struct delayed_work mpi_idc_work; struct delayed_work mpi_core_to_log; struct completion ide_completion; - struct nic_operations *nic_ops; + const struct nic_operations *nic_ops; u16 device_id; struct timer_list timer; atomic_t lb_count; |