diff input/lirc.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents ca614fc25817
children 277ec491a8a7
line wrap: on
line diff
--- a/input/lirc.c	Sat Nov 13 10:23:34 2010 +0000
+++ b/input/lirc.c	Sun Nov 14 09:12:34 2010 +0000
@@ -116,10 +116,8 @@
 
 void
 mp_input_lirc_close(int fd) {
-  if(cmd_buf) {
-    free(cmd_buf);
-    cmd_buf = NULL;
-  }
+  free(cmd_buf);
+  cmd_buf = NULL;
   lirc_freeconfig(lirc_config);
   lirc_deinit();
 }