iwlwifi: use list_first_entry
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Nov 2012 08:31:25 +0000 (09:31 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 Nov 2012 15:12:24 +0000 (16:12 +0100)
commite2b1930e6fd9aaa72cc44519b257ae71a1c2e29f
treef9b7b3f50bf8d932ceb42829f19efbbbc1fd6b97
parenta4dece9abce75332a082340bcc9b176f10484a62
iwlwifi: use list_first_entry

Instead of open-coding it with a temporary list_head
pointer, just use list_first_entry.

Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/rx.c