common: sd_recovery: remove ununsed function
authorJaewon Kim <jaewon02.kim@samsung.com>
Thu, 29 Jun 2017 07:04:59 +0000 (16:04 +0900)
committerJaewon Kim <jaewon02.kim@samsung.com>
Thu, 29 Jun 2017 07:04:59 +0000 (16:04 +0900)
This patch removes unused function.
'sdcard_mmc_check_part_table' is no longer called.

Change-Id: Id29997518baecf0e25e9c2e3f598d7ef7e3bf726
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
common/cmd_sd_recovery.c

index 3f3d8125991d762e2e65ee6a2d52f3e42e86ffc1..1fcc637124e8befd5972ea113dc0cd3196df48d6 100644 (file)
@@ -80,34 +80,6 @@ struct update_sdcard_part {
 
 static struct update_sdcard_part f_sdcard_part[DEV_PART_MAX];
 
-
-static int sdcard_mmc_check_part_table(block_dev_desc_t *desc,
-                                             struct update_sdcard_part *fpart)
-{
-       uint64_t parts[DEV_PART_MAX][2] = { {0, 0}, };
-       int i = 0, num = 0;
-       int ret = 1;
-
-       if (get_part_table(desc, parts, &num) < 0)
-               return -1;
-
-       for (i = 0; i < num; i++) {
-               if (parts[i][0] == fpart->start &&
-                   parts[i][1] == fpart->length)
-                       return 0;
-               /* when last partition set value is zero,
-                  set avaliable length */
-               if ((num-1) == i &&
-                   parts[i][0] == fpart->start &&
-                   fpart->length == 0) {
-                       fpart->length = parts[i][1];
-                       ret = 0;
-                       break;
-               }
-       }
-       return ret;
-}
-
 static inline void update_sdcard_parse_comment(const char *str,
                                               const char **ret)
 {