Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: vnt_interrupt_process remove page 0 select

Page 1 is fully proctected by lock there is no need
to check for it. Page 0 is selected at other times.

Remove byOrgPageSel and its calls from function.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Malcolm Priestley and committed by
Greg Kroah-Hartman
f33d8d63 ff1ce1a8

-11
-11
drivers/staging/vt6655/device_main.c
··· 1056 1056 struct ieee80211_low_level_stats *low_stats = &pDevice->low_stats; 1057 1057 int max_count = 0; 1058 1058 u32 mib_counter; 1059 - unsigned char byOrgPageSel = 0; 1060 1059 unsigned long flags; 1061 1060 1062 1061 MACvReadISR(pDevice->PortOffset, &pDevice->dwIsr); ··· 1071 1072 MACvIntDisable(pDevice->PortOffset); 1072 1073 1073 1074 spin_lock_irqsave(&pDevice->lock, flags); 1074 - 1075 - /* Make sure current page is 0 */ 1076 - VNSvInPortB(pDevice->PortOffset + MAC_REG_PAGE1SEL, &byOrgPageSel); 1077 - if (byOrgPageSel == 1) 1078 - MACvSelectPage0(pDevice->PortOffset); 1079 - else 1080 - byOrgPageSel = 0; 1081 1075 1082 1076 /* Read low level stats */ 1083 1077 MACvReadMIBCounter(pDevice->PortOffset, &mib_counter); ··· 1155 1163 if (max_count > pDevice->sOpts.int_works) 1156 1164 break; 1157 1165 } 1158 - 1159 - if (byOrgPageSel == 1) 1160 - MACvSelectPage1(pDevice->PortOffset); 1161 1166 1162 1167 spin_unlock_irqrestore(&pDevice->lock, flags); 1163 1168