Merge pull request #247 from Lewis-Kang/master

fix the erroneous code in onlp_sfpi_bitmap_get()
This commit is contained in:
Jeffrey Townsend
2017-09-27 15:05:46 -07:00
committed by GitHub
5 changed files with 0 additions and 10 deletions

View File

@@ -67,8 +67,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);

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);

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);

View File

@@ -67,8 +67,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);

View File

@@ -68,8 +68,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);