screen: Remove the code which tracks the currently displayed screen

Currently firmware screen is not switching to "VB_SCREEN_RECOVERY_NO_GOOD"
after connecting USB drive which does not contain chrome OS more than
one time in recovery mode.

when non OS USB drive is connected for first time vboot_draw_screen is
called and current_screen is set to VB_SCREEN_RECOVERY_NO_GOOD screen.
when non OS USB is removed it swicthes back to recovery UI but in this
case current_screen variable is not updated. From second time onwards
since current_screen still holds VB_SCREEN_RECOVERY_NO_GOOD screen value
and condition check "requested screen = current screen" is satisfied and
screen does not switch to VB_SCREEN_RECOVERY_NO_GOOD.

Since condition to check if requested screen is the same as the current one
is already handled in Vboot, there is no need to track the screen in
depthcharge. Hence this patch removes the code which tracks the currently
displayed screen in depthcharge.

Change-Id: I7438dd3dcb77dc08f0fe729a5bf40ccdeaf3cd8b
Signed-off-by: V Sowmya <v.sowmya@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/611765
Tested-by: Naresh Solanki <naresh.solanki@intel.com>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
1 file changed