i40e: constify i40e_client_ops structure
The i40e_client_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -1892,7 +1892,7 @@ static enum i40iw_status_code i40iw_virtchnl_send(struct i40iw_sc_dev *dev,
|
||||
}
|
||||
|
||||
/* client interface functions */
|
||||
static struct i40e_client_ops i40e_ops = {
|
||||
static const struct i40e_client_ops i40e_ops = {
|
||||
.open = i40iw_open,
|
||||
.close = i40iw_close,
|
||||
.l2_param_change = i40iw_l2param_change,
|
||||
|
Reference in New Issue
Block a user