as5912-54x: fix the erroneous code in onlp_sfpi_bitmap_get()

This commit is contained in:
Lewis Kang
2017-09-27 09:48:11 +08:00
committed by GitHub
parent bb548278f3
commit f63d2cd520

View File

@@ -55,8 +55,6 @@ onlp_sfpi_bitmap_get(onlp_sfp_bitmap_t* bmap)
* Ports {0, 54}
*/
int p;
AIM_BITMAP_INIT(bmap, 64);
AIM_BITMAP_CLR_ALL(bmap);
for(p = 0; p < NUM_OF_SFP_PORT; p++) {
AIM_BITMAP_SET(bmap, p);