Remove local "serial" variable
In execute_server(), the serial is used only once. Moreover, it can be retrieved from the `params` argument directly.
This commit is contained in:
parent
d5f6697f3a
commit
5434ea543c
1 changed files with 1 additions and 3 deletions
|
@ -139,8 +139,6 @@ log_level_to_server_string(enum sc_log_level level) {
|
||||||
static sc_pid
|
static sc_pid
|
||||||
execute_server(struct sc_server *server,
|
execute_server(struct sc_server *server,
|
||||||
const struct sc_server_params *params) {
|
const struct sc_server_params *params) {
|
||||||
const char *serial = server->params.serial;
|
|
||||||
|
|
||||||
char max_size_string[6];
|
char max_size_string[6];
|
||||||
char bit_rate_string[11];
|
char bit_rate_string[11];
|
||||||
char max_fps_string[6];
|
char max_fps_string[6];
|
||||||
|
@ -199,7 +197,7 @@ execute_server(struct sc_server *server,
|
||||||
// Port: 5005
|
// Port: 5005
|
||||||
// Then click on "Debug"
|
// Then click on "Debug"
|
||||||
#endif
|
#endif
|
||||||
return adb_execute(serial, cmd, ARRAY_LEN(cmd));
|
return adb_execute(params->serial, cmd, ARRAY_LEN(cmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
Loading…
Reference in a new issue