qlge: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 13 Aug 2017 01:58:40 +0000 (20:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 17:58:10 +0000 (10:58 -0700)
commit4db93fb8aca3e9e56987c0e873166bdf4b6576ce
treea0147374d5fbe124fc6d5bac9d99cde7799e9fd4
parentb5e7dc47425860172eec6e1116ace7759d13b999
qlge: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_dbg.c