From: Larry Finger Date: Tue, 3 Feb 2015 17:15:18 +0000 (-0600) Subject: rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO X-Git-Tag: fixes-v4.0-rc1~150^2~10^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4beca3775222884e1ee9d48ef586c438c3dfa1;p=pandora-kernel.git rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO This driver utilizes a FIFO buffer for RX descriptors. There are four places in the code where it calculates the number of free slots. Several of those locations do the calculation incorrectly. To fix these and to prevent future mistakes, a common inline routine is created. Signed-off-by: Larry Finger Cc: Stable [V3.18] Signed-off-by: Kalle Valo --- Reading git-diff-tree failed