Fix bracket placing
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 4 May 2012 08:18:22 +0000 (10:18 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 4 May 2012 08:49:38 +0000 (10:49 +0200)
Make it consistent with the rest of the code

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
sigrok-cli.c

index 64406009e8f43da5ce75236e1959b415c3f84efa..2aec20593269085241b28ccfb5ab9c205030e597 100644 (file)
@@ -1044,7 +1044,7 @@ int main(int argc, char **argv)
                                printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[i]);
                                return 1;
                        }
                                printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[i]);
                                return 1;
                        }
-                       if ((ret = srd_inst_stack(di_from, di_to) != SRD_OK))
+                       if ((ret = srd_inst_stack(di_from, di_to)) != SRD_OK)
                                return ret;
 
                        /* Don't show annotation from this PD. Only the last PD in
                                return ret;
 
                        /* Don't show annotation from this PD. Only the last PD in