mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
DRIVERS: net: macsec: Fix multiple coding style issues
This patch fixes a couple of issues highlighted by checkpatch.pl: * Missing a blank line after declarations * Alignment should match open parenthesis Signed-off-by: Romain Aviolat <r.aviolat@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
957b085c79
commit
7979472bba
1 changed files with 8 additions and 10 deletions
|
@ -1142,6 +1142,7 @@ static rx_handler_result_t macsec_handle_frame(struct sk_buff **pskb)
|
|||
|
||||
list_for_each_entry_rcu(macsec, &rxd->secys, secys) {
|
||||
struct macsec_rx_sc *sc = find_rx_sc(&macsec->secy, sci);
|
||||
|
||||
sc = sc ? macsec_rxsc_get(sc) : NULL;
|
||||
|
||||
if (sc) {
|
||||
|
@ -1584,7 +1585,6 @@ static struct macsec_rx_sa *get_rxsa_from_nl(struct net *net,
|
|||
return rx_sa;
|
||||
}
|
||||
|
||||
|
||||
static const struct nla_policy macsec_genl_policy[NUM_MACSEC_ATTR] = {
|
||||
[MACSEC_ATTR_IFINDEX] = { .type = NLA_U32 },
|
||||
[MACSEC_ATTR_RXSC_CONFIG] = { .type = NLA_NESTED },
|
||||
|
@ -2962,13 +2962,11 @@ static int macsec_get_iflink(const struct net_device *dev)
|
|||
return macsec_priv(dev)->real_dev->ifindex;
|
||||
}
|
||||
|
||||
|
||||
static int macsec_get_nest_level(struct net_device *dev)
|
||||
{
|
||||
return macsec_priv(dev)->nest_level;
|
||||
}
|
||||
|
||||
|
||||
static const struct net_device_ops macsec_netdev_ops = {
|
||||
.ndo_init = macsec_dev_init,
|
||||
.ndo_uninit = macsec_dev_uninit,
|
||||
|
|
Loading…
Reference in a new issue