Thread (2 messages) flat view 2 messages, 2 authors, 2017-01-23

Re: [PATCH v2] net: moxa: constify net_device_ops structures

From: David Miller <davem@davemloft.net>
Date: 2017-01-23 21:00:44
Also in: lkml

From: Bhumika Goyal <redacted>
Date: Sat, 21 Jan 2017 12:27:26 +0530
Declare net_device_ops structure as const as it is only stored in
the netdev_ops field of a net_device structure. This field is of type
const, so net_device_ops structures having same properties can be made
const too.
Done using Coccinelle:
 ...
Signed-off-by: Bhumika Goyal <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help