brcmsmac: Add helper function for updating txavail count
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Nov 2012 14:07:53 +0000 (08:07 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Nov 2012 19:03:37 +0000 (14:03 -0500)
commit05f8a6160491ea46636370fbacb4061c341d5d94
treee59eb3ae6def081b7b67dd31d2a44f91f8de0d61
parent5c8067caeecbabf8c60dbb73dd517d2a2aad16a5
brcmsmac: Add helper function for updating txavail count

Use this helper function rather than open-coding the same calculation in
multiple places.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/dma.c