dell: Fix a trivial whitespace issue

This commit is contained in:
Richard Hughes 2017-09-16 18:39:15 +01:00
parent 882ab6b4d0
commit 9decf17d82

View File

@ -790,30 +790,30 @@ fu_plugin_update (FuPlugin *plugin,
g_bytes_get_data (blob_fw, NULL), g_bytes_get_data (blob_fw, NULL),
g_bytes_get_size (blob_fw)); g_bytes_get_size (blob_fw));
if (rc < 0) { if (rc < 0) {
g_autoptr(GString) err_string = g_string_new ("Dell firmware update failed:\n"); g_autoptr(GString) err_string = g_string_new ("Dell firmware update failed:\n");
rc = 1; rc = 1;
for (int i =0; rc > 0; i++) { for (int i = 0; rc > 0; i++) {
char *filename = NULL; char *filename = NULL;
char *function = NULL; char *function = NULL;
char *message = NULL; char *message = NULL;
int line = 0; int line = 0;
int err = 0; int err = 0;
rc = efi_error_get (i, &filename, &function, &line, &message, &err); rc = efi_error_get (i, &filename, &function, &line, &message, &err);
if (rc <= 0) if (rc <= 0)
break; break;
g_string_append_printf (err_string, g_string_append_printf (err_string,
"{error #%d} %s:%d %s(): %s: %s \n", "{error #%d} %s:%d %s(): %s: %s \n",
i, filename, line, function, message, strerror(err)); i, filename, line, function, message, strerror(err));
} }
g_set_error (error, g_set_error (error,
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED, FWUPD_ERROR_NOT_SUPPORTED,
"%s", "%s",
err_string->str); err_string->str);
return FALSE; return FALSE;
} }
return TRUE; return TRUE;
} }
@ -840,16 +840,16 @@ fu_plugin_device_registered (FuPlugin *plugin, FuDevice *device)
gboolean gboolean
fu_plugin_update_prepare (FuPlugin *plugin, fu_plugin_update_prepare (FuPlugin *plugin,
FuDevice *device, FuDevice *device,
GError **error) GError **error)
{ {
return fu_dell_toggle_flash (device, error, TRUE); return fu_dell_toggle_flash (device, error, TRUE);
} }
gboolean gboolean
fu_plugin_update_cleanup (FuPlugin *plugin, fu_plugin_update_cleanup (FuPlugin *plugin,
FuDevice *device, FuDevice *device,
GError **error) GError **error)
{ {
return fu_dell_toggle_flash (device, error, FALSE); return fu_dell_toggle_flash (device, error, FALSE);
} }