mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 18:20:22 +01:00
keyfile: minor refactoring dropping temporary variable in mac_address_parser()
This commit is contained in:
parent
cb33e3f3c2
commit
095c6f5d53
1 changed files with 1 additions and 2 deletions
|
|
@ -668,7 +668,6 @@ mac_address_parser (KeyfileReaderInfo *info, NMSetting *setting, const char *key
|
|||
buf_arr = g_new (guint8, buf_len);
|
||||
for (i = 0; i < length; i++) {
|
||||
int val = tmp_list[i];
|
||||
const guint8 v = (guint8) (val & 0xFF);
|
||||
|
||||
if (val < 0 || val > 255) {
|
||||
handle_warn (info, key, NM_KEYFILE_WARN_SEVERITY_WARN,
|
||||
|
|
@ -676,7 +675,7 @@ mac_address_parser (KeyfileReaderInfo *info, NMSetting *setting, const char *key
|
|||
val);
|
||||
return;
|
||||
}
|
||||
buf_arr[i] = v;
|
||||
buf_arr[i] = (guint8) val;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue