Skip to content
Snippets Groups Projects
  • Leon Yu's avatar
    dfaad820
    menu: don't bother going interactive with just one menu item · dfaad820
    Leon Yu authored
    
    If there is only one menu item available, prompting user to enter
    choice makes little sense and just causes unnecessary boot delay. This
    change makes menu_get_choice return the only one item when there is no
    other choices.
    
    Signed-off-by: default avatarLeon Yu <leoyu@nvidia.com>
    Cc: Tom Warren <twarren@nvidia.com>
    Cc: Stephen Warren <swarren@nvidia.com>
    Cc: Thierry Reding <treding@nvidia.com>
    dfaad820
    History
    menu: don't bother going interactive with just one menu item
    Leon Yu authored
    
    If there is only one menu item available, prompting user to enter
    choice makes little sense and just causes unnecessary boot delay. This
    change makes menu_get_choice return the only one item when there is no
    other choices.
    
    Signed-off-by: default avatarLeon Yu <leoyu@nvidia.com>
    Cc: Tom Warren <twarren@nvidia.com>
    Cc: Stephen Warren <swarren@nvidia.com>
    Cc: Thierry Reding <treding@nvidia.com>