Get rid of some redundant function pointer checks for driver.input

This commit is contained in:
twinaphex 2014-09-16 17:50:38 +02:00
parent a5e367d2f0
commit 709ecbfa67
1 changed files with 2 additions and 4 deletions

View File

@ -780,7 +780,6 @@ static inline void input_poll_overlay(void)
void rarch_input_poll(void) void rarch_input_poll(void)
{ {
if (driver.input && driver.input->poll)
driver.input->poll(driver.input_data); driver.input->poll(driver.input_data);
#ifdef HAVE_OVERLAY #ifdef HAVE_OVERLAY
@ -2165,7 +2164,6 @@ static void set_fullscreen(bool fullscreen)
driver.video_cache_context = false; driver.video_cache_context = false;
/* Poll input to avoid possibly stale data to corrupt things. */ /* Poll input to avoid possibly stale data to corrupt things. */
if (driver.input)
driver.input->poll(driver.input_data); driver.input->poll(driver.input_data);
} }