Explorar o código

删除没用的代码

linzhenxing %!s(int64=3) %!d(string=hai) anos
pai
achega
aa7684ff66
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  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);
-        // 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 */
         if (good_pgpt)