mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-10 15:23:06 +00:00
rtl8188eu: Remove symbol MAX_RF_PATH_NUMS
This one is always equal to RF_PATH_MAX. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
379691b761
commit
f9dbfb74dc
4 changed files with 9 additions and 11 deletions
|
@ -6584,7 +6584,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
|
||||
/*
|
||||
* Input Format: %d,%x,%x
|
||||
* %d is RF path, should be smaller than MAX_RF_PATH_NUMS
|
||||
* %d is RF path, should be smaller than RF_PATH_MAX
|
||||
* 1st %x is address(offset)
|
||||
* 2st %x is data to write
|
||||
*/
|
||||
|
@ -6600,7 +6600,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
if (ret < 3)
|
||||
return -EINVAL;
|
||||
|
||||
if (path >= MAX_RF_PATH_NUMS)
|
||||
if (path >= RF_PATH_MAX)
|
||||
return -EINVAL;
|
||||
if (addr > 0xFF)
|
||||
return -EINVAL;
|
||||
|
@ -6619,7 +6619,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
|
||||
/*
|
||||
* Input Format: %d,%x
|
||||
* %d is RF path, should be smaller than MAX_RF_PATH_NUMS
|
||||
* %d is RF path, should be smaller than RF_PATH_MAX
|
||||
* %x is address(offset)
|
||||
*
|
||||
* Return:
|
||||
|
@ -6647,7 +6647,7 @@ static int rtw_mp_read_rf(struct net_device *dev,
|
|||
if (ret < 2)
|
||||
return -EINVAL;
|
||||
|
||||
if (path >= MAX_RF_PATH_NUMS)
|
||||
if (path >= RF_PATH_MAX)
|
||||
return -EINVAL;
|
||||
if (addr > 0xFF)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue