net: mvneta: Check tx queue setup error in mvneta_change_mtu()
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 22 May 2014 23:06:58 +0000 (20:06 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2014 19:31:49 +0000 (15:31 -0400)
commita92dbd96274ba7615e59bded4f14c2bf9ca46302
tree7fd9a4edfd37983c070fef7ee5875f09e105c98f
parent3d4ea02fd87d1222ec43540c983aa387a5fa1a87
net: mvneta: Check tx queue setup error in mvneta_change_mtu()

This commit checks the return code of mvneta_setup_txq() call
in mvneta_change_mtu(). Also, use the netdevice pointer directly
instead of dereferencing the port structure. While here, let's
fix a tiny comment typo.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c