i40e: check desc pointer before printing
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 15 Jan 2014 23:18:23 +0000 (15:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 01:20:37 +0000 (17:20 -0800)
commit68bf94aae1873cb112385830e1a98a36bf154970
tree24a10d1ae6cee4c83851559e6fb88686b41cb970
parentb01f236c66b214a73816a4083050f73481638a72
i40e: check desc pointer before printing

Check that the descriptors were allocated before trying to dump
them to the logfile.  While we're there, de-trick-ify the code
so as to be easier to read and not abusing the types and unions.

Change-ID: I22898f4b22cecda3582d4d9e4018da9cd540f177
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c