From 6c83f2262d5921ce927ed9d13935ac30dd8c956b Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 5 Feb 2022 21:21:06 +0900 Subject: [PATCH] AP_Scripting: Remove meaningless semicolons --- libraries/AP_Scripting/generator/src/main.c | 2 +- libraries/AP_Scripting/lua_bindings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Scripting/generator/src/main.c b/libraries/AP_Scripting/generator/src/main.c index 619c468ea0..e228d18fc2 100644 --- a/libraries/AP_Scripting/generator/src/main.c +++ b/libraries/AP_Scripting/generator/src/main.c @@ -1936,7 +1936,7 @@ void emit_operators(struct userdata *data) { fprintf(source, " %s *ud2 = check_%s(L, 2);\n", data->name, data->sanatized_name); // create a container for the result fprintf(source, " new_%s(L);\n", data->sanatized_name); - fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;;\n", data->sanatized_name, op_sym); + fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;\n", data->sanatized_name, op_sym); // return the first pointer fprintf(source, " return 1;\n"); fprintf(source, "}\n\n"); diff --git a/libraries/AP_Scripting/lua_bindings.cpp b/libraries/AP_Scripting/lua_bindings.cpp index 5cce6370c1..225623267a 100644 --- a/libraries/AP_Scripting/lua_bindings.cpp +++ b/libraries/AP_Scripting/lua_bindings.cpp @@ -320,7 +320,7 @@ static int lua_get_i2c_device(lua_State *L) { static_assert(SCRIPTING_MAX_NUM_I2C_DEVICE >= 0, "There cannot be a negative number of I2C devices"); if (AP::scripting()->num_i2c_devices >= SCRIPTING_MAX_NUM_I2C_DEVICE) { - return luaL_argerror(L, 1, "no i2c devices available");; + return luaL_argerror(L, 1, "no i2c devices available"); } AP::scripting()->_i2c_dev[AP::scripting()->num_i2c_devices] = new AP_HAL::OwnPtr;