From cd31ed13599898edd26b78ac843dcc0a3adbadec Mon Sep 17 00:00:00 2001 From: Li kunyu Date: Thu, 29 Sep 2022 07:32:50 +0000 Subject: Optimize some code statements (#844) * ptp2/config: remove a semicolon Signed-off-by: Li kunyu * docupen: remove a semicolon Signed-off-by: Li kunyu * ax203: remove a semicolon Signed-off-by: Li kunyu Signed-off-by: Li kunyu --- camlibs/ax203/ax203.c | 2 +- camlibs/docupen/docupen.c | 2 +- camlibs/ptp2/config.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'camlibs') 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; -- cgit v1.2.1