From: Johannes Berg Date: Wed, 13 Apr 2011 10:14:43 +0000 (-0700) Subject: iwlagn: simplify error table reading X-Git-Tag: v3.0-rc1~377^2~161^2^2~141^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e46f6538c24f01bb68dc374358ce85a0af666682;p=pandora-kernel.git iwlagn: simplify error table reading The current code to read the error table header just hardcodes all the offsets, which is a bit hard to understand. We can read in the entire header (as much as we need) into a structure, and then take the data from there, which makes it easier to understand. To read a bigger blob we also don't need to grab NIC access for each word read, making the code more efficient. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy --- Reading git-diff-tree failed