]> git.baikalelectronics.ru Git - kernel.git/commit
mac80111: aes_gcm: clean up ieee80211_aes_gcm_key_setup_encrypt()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 23 Mar 2015 14:08:14 +0000 (17:08 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Mar 2015 08:42:02 +0000 (10:42 +0200)
commit50ae43d68cd8af30e8fe508a94f4567678c4ad77
treef1672c75f880a236826feb79ee8f618bd6b22af8
parent394f21a0ed2b18e7e870d12bf69531ef3c82a43b
mac80111: aes_gcm: clean up ieee80211_aes_gcm_key_setup_encrypt()

This code is written using an anti-pattern called "success handling"
which makes it hard to read, especially if you are used to normal kernel
style.  It should instead be written as a list of directives in a row
with branches for error handling.

(Basically copied from Dan's previous patch for CCM)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/aes_gcm.c