From 3e19bf879f1cdcf90b86ca2bf26b38293babe758 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 19 Jun 2012 11:20:34 +0200 Subject: [PATCH] * grub-core/kern/device.c (grub_device_open): Remove dead code. --- ChangeLog | 4 ++++ grub-core/kern/device.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61a58d13c..82e657382 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-19 Vladimir Serbinenko + + * grub-core/kern/device.c (grub_device_open): Remove dead code. + 2012-06-18 Vladimir Serbinenko * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions. diff --git a/grub-core/kern/device.c b/grub-core/kern/device.c index 7ba09b03f..12615647d 100644 --- a/grub-core/kern/device.c +++ b/grub-core/kern/device.c @@ -32,7 +32,6 @@ grub_net_t (*grub_net_open) (const char *name) = NULL; grub_device_t grub_device_open (const char *name) { - grub_disk_t disk = 0; grub_device_t dev = 0; if (! name) @@ -64,9 +63,6 @@ grub_device_open (const char *name) return dev; fail: - if (disk) - grub_disk_close (disk); - grub_free (dev); return 0;