summaryrefslogtreecommitdiff
path: root/camlibs/mars
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2016-10-29 21:04:02 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2016-10-29 21:14:33 +0200
commitfdc76f737d49492a0bb43d8c93027174d3675538 (patch)
treed6453d0e998a1e34e4769d316036d0f5cf052457 /camlibs/mars
parentb86b8e90333310495bcd70f5c3bf5a906b89c480 (diff)
downloadlibgphoto2-fdc76f737d49492a0bb43d8c93027174d3675538.tar.gz
remove redundant parenthesis in conditional
This makes the code more obvious, and stops triggering a compiler warning.
Diffstat (limited to 'camlibs/mars')
-rw-r--r--camlibs/mars/mars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/mars/mars.c b/camlibs/mars/mars.c
index f15b0e8cd..d29eb6364 100644
--- a/camlibs/mars/mars.c
+++ b/camlibs/mars/mars.c
@@ -74,7 +74,7 @@ mars_init (Camera *camera, GPPort *port, Info *info)
*/
m_read(port, c, 16);
- if ( (c[0] == 0x02 ) ) {
+ if (c[0] == 0x02) {
gp_port_write(port, "\x19", 1);
gp_port_read(port, c, 16);
}