drivers: net: xgene-v2: misc fixes
commit1ffa8a7aa516473b3575ee8c30f4e0b1bb29a7d8
authorIyappan Subramanian <isubramanian@apm.com>
Wed, 22 Mar 2017 01:18:05 +0000 (21 18:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2017 02:17:14 +0000 (22 19:17 -0700)
tree650bf7ddbc178cf26c54217103cca27014bc4314
parentb2180a8f28dbd66d6593a70ead791ad9b347bc74
drivers: net: xgene-v2: misc fixes

Fixed review comments from the previous patch-set.

- changed return value check of platform_get_irq() to < 0
- replaced devm_request(free)_irq() calls by request(free)_irq() since
  they are called from open() and close()
- changed sizeof(struct mystruct) to sizeof(*mystruct)
- reduced indentation on tx_timeout()

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene-v2/main.c