aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMaxime Chevallier <[email protected]>2018-03-26 15:34:22 +0200
committerDavid S. Miller <[email protected]>2018-03-27 10:47:23 -0400
commit47e0e14eb1a688c0868385e02db263093d2df6db (patch)
treeadab81de2ba1e9f00825c9d946fe085bf9b63226 /net/unix/sysctl_net_unix.c
parent8daf1a2d7e40685054ebae680733d822ced6df62 (diff)
net: mvpp2: Make mvpp2_prs_hw_read a parser entry init function
The mvpp2_prs_hw_read function uses the 'index' field of the struct mvpp2_prs_entry to initialize the rest of the fields. This makes it unclear from a caller's perspective, who needs to manipulate a struct that is not entirely initialized. This commit makes it an init function for prs_entry, by passing it the index as a parameter. The function now zeroes the entry, and sets the index field before doing all other init from HW. The function is renamed 'mvpp2_prs_init_from_hw' to make that clear. Signed-off-by: Maxime Chevallier <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions