From: Bob Copeland Date: Tue, 26 Feb 2013 18:41:52 +0000 (-0500) Subject: ath9k: simplify ATH_EP_RND X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba910db199779470685dd962d626e1ffc657f7e;p=pandora-kernel.git ath9k: simplify ATH_EP_RND Remove the embedded branch to make the ATH_EP_RND macro a little clearer. The new version also generates better code, saving 24 bytes of text: text data bss dec hex filename 87858 1641 24 89523 15db3 ath9k_orig.ko 87834 1641 24 89499 15d9b ath9k_new.ko Although neither version handles negative values particularly well, the lone caller clamps all negative values to zero anyway. I have verified that the results are the same for the range of possible positive rssi values. Signed-off-by: Bob Copeland Signed-off-by: John W. Linville --- Reading git-diff-tree failed