diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-09-29 07:32:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 09:32:50 +0200 |
commit | cd31ed13599898edd26b78ac843dcc0a3adbadec (patch) | |
tree | 627a765145d8fb88fae63ad5da05fe3b88499b70 /camlibs | |
parent | f34898a0d804a60684d6bc88496ddcf845eac82e (diff) | |
download | libgphoto2-cd31ed13599898edd26b78ac843dcc0a3adbadec.tar.gz |
Optimize some code statements (#844)
* ptp2/config: remove a semicolon
Signed-off-by: Li kunyu <kunyu@nfschina.com>
* docupen: remove a semicolon
Signed-off-by: Li kunyu <kunyu@nfschina.com>
* ax203: remove a semicolon
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/ax203/ax203.c | 2 | ||||
-rw-r--r-- | camlibs/docupen/docupen.c | 2 | ||||
-rw-r--r-- | camlibs/ptp2/config.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/camlibs/ax203/ax203.c b/camlibs/ax203/ax203.c index 8c232c8a7..8214ee45b 100644 --- a/camlibs/ax203/ax203.c +++ b/camlibs/ax203/ax203.c @@ -992,7 +992,7 @@ ax203_read_filecount(Camera *camera) return ax203_read_v3_3_x_v3_4_x_filecount (camera); case AX206_FIRMWARE_3_5_x: case AX3003_FIRMWARE_3_5_x: - return ax203_read_v3_5_x_filecount (camera);; + return ax203_read_v3_5_x_filecount (camera); } /* Never reached */ return GP_ERROR_NOT_SUPPORTED; diff --git a/camlibs/docupen/docupen.c b/camlibs/docupen/docupen.c index 9490ff936..762c29cf9 100644 --- a/camlibs/docupen/docupen.c +++ b/camlibs/docupen/docupen.c @@ -273,7 +273,7 @@ camera_config_set (Camera *camera, CameraWidget *window, GPContext *context) if (!strcmp(value, _("100 DPI"))) camera->pl->profile[0x81] = RES_100DPI; else if (!strcmp(value, _("200 DPI"))) - camera->pl->profile[0x81] = RES_200DPI;; + camera->pl->profile[0x81] = RES_200DPI; } gp_widget_get_child_by_label (section, _("Hi Resolution"), &widget); diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 4ac6b88ab..98ef98185 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -9055,7 +9055,7 @@ _put_Panasonic_ColorTemp(CONFIG_PUT_ARGS) uint32_t val; CR (gp_widget_get_value(widget, &xval)); - uint16_t KSet;; + uint16_t KSet; sscanf (xval, "%hd", &KSet); val = KSet; |