* grub-core/kern/device.c (grub_device_open): Remove dead code.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-06-19 11:20:34 +02:00
parent c62d1a0c64
commit 3e19bf879f
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/device.c (grub_device_open): Remove dead code.
2012-06-18 Vladimir Serbinenko <phcoder@gmail.com> 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions. * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.

View file

@ -32,7 +32,6 @@ grub_net_t (*grub_net_open) (const char *name) = NULL;
grub_device_t grub_device_t
grub_device_open (const char *name) grub_device_open (const char *name)
{ {
grub_disk_t disk = 0;
grub_device_t dev = 0; grub_device_t dev = 0;
if (! name) if (! name)
@ -64,9 +63,6 @@ grub_device_open (const char *name)
return dev; return dev;
fail: fail:
if (disk)
grub_disk_close (disk);
grub_free (dev); grub_free (dev);
return 0; return 0;