Re: [PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-07 Thread David Miller
From: Egil Hjelmeland Date: Mon, 6 Nov 2017 15:19:49 +0100 > Now that ds->num_ports is 3, there is no need to check range of "port" > parameter. > > Signed-off-by: Egil Hjelmeland Applied.

Re: [PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-06 Thread Egil Hjelmeland
On 06. nov. 2017 15:19, Egil Hjelmeland wrote: Now that ds->num_ports is 3, there is no need to check range of "port" parameter. + lan9303_disable_processing_port(chip, port); + lan9303_phy_write(ds, chip->phy_addr_sel_strap + port, + MII_BMCR, BMCR_PDOWN);

[PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-06 Thread Egil Hjelmeland
Now that ds->num_ports is 3, there is no need to check range of "port" parameter. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/la