qlge: call ql_core_dump() only if dump memory was allocated.
authormalahal@us.ibm.com <malahal@us.ibm.com>
Fri, 20 Sep 2013 21:21:17 +0000 (16:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Sep 2013 15:19:46 +0000 (11:19 -0400)
commit3db9180213af6aa54effc2b94bc9090dc1f68673
tree3546671adc74cf82e1182a080efee938e9d2887e
parent3361dc9538832a2a9150a8c722374ca844bf8dc8
qlge: call ql_core_dump() only if dump memory was allocated.

Also changed a log message to indicate that memory was not allocated
instead of memory not available!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_dbg.c
drivers/net/ethernet/qlogic/qlge/qlge_mpi.c