efi_loader: Split drive add into function
authorAlexander Graf <agraf@suse.de>
Mon, 11 Apr 2016 14:16:17 +0000 (16:16 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2016 21:11:35 +0000 (17:11 -0400)
commit4a12a97c14217a5b02791040e464449f779fce43
tree72b3e18c1e5f711c31fb4ce9f76f0e00307e997e
parenta2adb173ec1551ce8a2081085d20d82162f7900d
efi_loader: Split drive add into function

The snippet of code to add a drive to our drive list needs to
get called from 2 places in the future. Split it into a separate
function.

Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_disk.c