mbox series

[0/3] connection: Optimize Conditional '&&' Clauses in '__connman_connection_gateway_remove'

Message ID 20231130002309.1322111-1-gerickson@nuovations.com (mailing list archive)
Headers show
Series connection: Optimize Conditional '&&' Clauses in '__connman_connection_gateway_remove' | expand

Message

Grant Erickson Nov. 30, 2023, 12:23 a.m. UTC
This optimizes the conditional && clauses in
__connman_connection_gateway_remove to take advantage of stored, local
state in set_default[46] thereby avoiding redundant checks of
do_ipv[46], data->ipv[46]_config, and data->ipv[46]_config->vpn.

Grant Erickson (3):
  connection: Fix white space indentation.
  connection: Optimize conditional '&&' clauses.
  connection: Rename 'set_default[46]' local variables.

 src/connection.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)