diff options
Diffstat (limited to 'drivers/net/netdevsim')
| -rw-r--r-- | drivers/net/netdevsim/bus.c | 2 | ||||
| -rw-r--r-- | drivers/net/netdevsim/fib.c | 6 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/netdevsim/bus.c b/drivers/net/netdevsim/bus.c index 7971dc4f54f1..0e9511661601 100644 --- a/drivers/net/netdevsim/bus.c +++ b/drivers/net/netdevsim/bus.c @@ -193,7 +193,7 @@ new_device_store(struct bus_type *bus, const char *buf, size_t count)  	switch (err) {  	case 1:  		port_count = 1; -		/* fall through */ +		fallthrough;  	case 2:  		if (id > INT_MAX) {  			pr_err("Value of \"id\" is too big.\n"); diff --git a/drivers/net/netdevsim/fib.c b/drivers/net/netdevsim/fib.c index f32d56ac3e80..deea17a0e79c 100644 --- a/drivers/net/netdevsim/fib.c +++ b/drivers/net/netdevsim/fib.c @@ -760,14 +760,14 @@ static int nsim_fib_event_nb(struct notifier_block *nb, unsigned long event,  	spin_lock_bh(&data->fib_lock);  	switch (event) { -	case FIB_EVENT_RULE_ADD: /* fall through */ +	case FIB_EVENT_RULE_ADD:  	case FIB_EVENT_RULE_DEL:  		err = nsim_fib_rule_event(data, info,  					  event == FIB_EVENT_RULE_ADD);  		break; -	case FIB_EVENT_ENTRY_REPLACE:  /* fall through */ -	case FIB_EVENT_ENTRY_APPEND:  /* fall through */ +	case FIB_EVENT_ENTRY_REPLACE: +	case FIB_EVENT_ENTRY_APPEND:  	case FIB_EVENT_ENTRY_DEL:  		err = nsim_fib_event(data, info, event);  		break;  |