changeset 36750:8a1186284090

Remove pointless "if".
author reimar
date Sun, 16 Feb 2014 14:01:20 +0000
parents 9393c7f716f3
children ca939d7e25be
files libmpcodecs/vf_screenshot.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c	Sun Feb 16 13:24:55 2014 +0000
+++ b/libmpcodecs/vf_screenshot.c	Sun Feb 16 14:01:20 2014 +0000
@@ -124,8 +124,7 @@
 static int fexists(char *fname)
 {
     struct stat dummy;
-    if (stat(fname, &dummy) == 0) return 1;
-    else return 0;
+    return stat(fname, &dummy) == 0;
 }
 
 static void gen_fname(struct vf_priv_s* priv)