gpt-utils: Remove unused vars.
[ 41% 579/1383] target C++: libgptutils <= device/google/marlin/recovery/gpt-utils/gpt-utils.cpp
device/google/marlin/recovery/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
struct stat ufs_dir_stat;
^
device/google/marlin/recovery/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
int r, fd;
^
device/google/marlin/recovery/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
int r, fd;
^
3 warnings generated.
Test: lunch aosp_marlin-userdebug; mmma -j device/google/marlin/recovery
Change-Id: I0c399458696d1f80f7c4509ec6e957556338809a
diff --git a/recovery/gpt-utils/gpt-utils.cpp b/recovery/gpt-utils/gpt-utils.cpp
index 9142c90..ade16e9 100644
--- a/recovery/gpt-utils/gpt-utils.cpp
+++ b/recovery/gpt-utils/gpt-utils.cpp
@@ -747,7 +747,6 @@
enum gpt_state gpt_prim, gpt_second;
enum boot_update_stage internal_stage;
struct stat xbl_partition_stat;
- struct stat ufs_dir_stat;
if (!dev_path) {
fprintf(stderr, "%s: Invalid dev_path\n",
@@ -970,7 +969,6 @@
int prepare_boot_update(enum boot_update_stage stage)
{
- int r, fd;
int is_ufs = gpt_utils_is_ufs_device();
struct stat ufs_dir_stat;
struct update_data data;