Browse Source

删除没用的代码

linzhenxing 3 years ago
parent
commit
aa7684ff66
1 changed files with 0 additions and 13 deletions
  1. 0 13
      components/drivers/sdio/gpt.c

+ 0 - 13
components/drivers/sdio/gpt.c

@@ -475,19 +475,6 @@ static int find_valid_gpt(struct rt_mmcsd_card *card, gpt_header **gpt,
         }
         }
 
 
         compare_gpts(pgpt, agpt, lastlba);
         compare_gpts(pgpt, agpt, lastlba);
-        // legacymbr = rt_malloc(512);
-        // if (!legacymbr)
-        // {
-        //     goto fail;
-        // }
-
-        // status = read_lba(card, 0, (uint8_t *)legacymbr, 1);
-        // if (status)
-        // {
-        //     LOG_I("status:%d\n", status);
-        //     goto fail;
-        // }
-        // rt_free(legacymbr);
 
 
         /* The good cases */
         /* The good cases */
         if (good_pgpt)
         if (good_pgpt)