Commit 2b803088 authored by Sergey Organov's avatar Sergey Organov Committed by Jakub Kicinski
Browse files

net: fec: get rid of redundant code in fec_ptp_set()



Code of the form "if(x) x = 0" replaced with "x = 0".

Code of the form "if(x == a) x = a" removed.

Signed-off-by: default avatarSergey Organov <sorganov@gmail.com>
Acked-by: default avatarFugang Duan <fugang.duan@nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 19956034
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -473,9 +473,7 @@ int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr)

	switch (config.rx_filter) {
	case HWTSTAMP_FILTER_NONE:
		if (fep->hwts_rx_en)
		fep->hwts_rx_en = 0;
		config.rx_filter = HWTSTAMP_FILTER_NONE;
		break;

	default: