]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: fec: don't skip check of num-rx-queues, when num-tx-queues is out of range
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 10 Oct 2017 12:01:20 +0000 (14:01 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 10 Oct 2017 12:01:20 +0000 (14:01 +0200)
commit95387156eec662a27cae737db85f6b61eee4f952
treea227c0f0c7f684d6810a9fe142012588eddf729d
parent47d2f3cc737ba183a27901faf4048f422aa7c010
net: fec: don't skip check of num-rx-queues, when num-tx-queues is out of range

There is no need to return from fec_enet_get_queue_num(), skipping the
check for num-rx-queues, when the value of num-tx-queues specified in
DT is invalid.
Furthermore print the name of the DT property set by the user, rather
than the driver's internal variable name in the warning message.
drivers/net/ethernet/freescale/fec_main.c