changeset 35293:b3a1fde4b842

Make code slightly easier to read.
author reimar
date Sat, 10 Nov 2012 12:38:54 +0000
parents 29be73f9a8ea
children a87b3429d9a9
files input/input.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Nov 10 12:33:14 2012 +0000
+++ b/input/input.c	Sat Nov 10 12:38:54 2012 +0000
@@ -1906,8 +1906,8 @@
  */
 int
 mp_input_check_interrupt(int time) {
-  mp_cmd_t* cmd;
-  if((cmd = mp_input_get_cmd(time,0,1)) == NULL)
+  mp_cmd_t *cmd = mp_input_get_cmd(time,0,1);
+  if (!cmd)
     return 0;
   switch(cmd->id) {
   case MP_CMD_QUIT: