trivial: Some clang-format fixups

This commit is contained in:
Richard Hughes 2022-06-22 15:55:32 +01:00
parent 751de3f4d2
commit dc1730c439
5 changed files with 19 additions and 20 deletions

View File

@ -729,7 +729,7 @@ static void
fu_ccgx_dmc_device_set_progress(FuDevice *self, FuProgress *progress)
{
fu_progress_set_id(progress, G_STRLOC);
fu_progress_add_flag(progress, FU_PROGRESS_FLAG_NO_PROFILE); /* actually 0, 20, 0, 80! */
fu_progress_add_flag(progress, FU_PROGRESS_FLAG_NO_PROFILE); /* actually 0, 20, 0, 80! */
fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 0, "detach");
fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 75, "write");
fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 0, "attach");

View File

@ -7,14 +7,14 @@
#include "config.h"
#include <fwupdplugin.h>
#include <fcntl.h>
#include <glib/gstdio.h>
#include <smbios_c/system_info.h>
#include <string.h>
#include <unistd.h>
#include <tss2/tss2_esys.h>
#include <fwupdplugin.h>
#include <unistd.h>
#include "fu-plugin-dell.h"

View File

@ -487,7 +487,6 @@ fu_intel_spi_device_set_quirk_kv(FuDevice *device,
return TRUE;
}
if (g_strcmp0(key, "IntelSpiKind") == 0) {
/* validate */
self->kind = fu_intel_spi_kind_from_string(value);
if (self->kind == FU_INTEL_SPI_KIND_UNKNOWN) {

View File

@ -37,20 +37,20 @@
#define IPMI_PASSWORD_TEST_PASSWORD 0x03
/* these are not provided in ipmi_msgdefs.h */
#define IPMI_INVALID_COMMAND_ON_LUN_ERR 0xC2
#define IPMI_OUT_OF_SPACE_ERR 0xC4
#define IPMI_CANCELLED_OR_INVALID_ERR 0xC5
#define IPMI_OUT_OF_RANGE_ERR 0xC9
#define IPMI_CANNOT_RETURN_DATA_ERR 0xCA
#define IPMI_NOT_FOUND_ERR 0xCB
#define IPMI_INVALID_DATA_FIELD_ERR 0xCC
#define IPMI_COMMAND_ILLEGAL_ERR 0xCD
#define IPMI_RESPONSE_NOT_PROVIDED_ERR 0xCE
#define IPMI_DUPLICATED_REQUEST_ERR 0xCF
#define IPMI_SDR_IN_UPDATE_MODE_ERR 0xD0
#define IPMI_DESTINATION_UNAVAILABLE_ERR 0xD3
#define IPMI_INSUFFICIENT_PRIVILEGE_ERR 0xD4
#define IPMI_COMMAND_DISABLED_ERR 0xD6
#define IPMI_INVALID_COMMAND_ON_LUN_ERR 0xC2
#define IPMI_OUT_OF_SPACE_ERR 0xC4
#define IPMI_CANCELLED_OR_INVALID_ERR 0xC5
#define IPMI_OUT_OF_RANGE_ERR 0xC9
#define IPMI_CANNOT_RETURN_DATA_ERR 0xCA
#define IPMI_NOT_FOUND_ERR 0xCB
#define IPMI_INVALID_DATA_FIELD_ERR 0xCC
#define IPMI_COMMAND_ILLEGAL_ERR 0xCD
#define IPMI_RESPONSE_NOT_PROVIDED_ERR 0xCE
#define IPMI_DUPLICATED_REQUEST_ERR 0xCF
#define IPMI_SDR_IN_UPDATE_MODE_ERR 0xD0
#define IPMI_DESTINATION_UNAVAILABLE_ERR 0xD3
#define IPMI_INSUFFICIENT_PRIVILEGE_ERR 0xD4
#define IPMI_COMMAND_DISABLED_ERR 0xD6
#ifndef IPMI_DEVICE_IN_UPDATE_MODE_ERR
#define IPMI_DEVICE_IN_UPDATE_MODE_ERR 0xD1

View File

@ -18,7 +18,7 @@ struct _FuWacFirmware {
G_DEFINE_TYPE(FuWacFirmware, fu_wac_firmware, FU_TYPE_FIRMWARE)
#define FU_WAC_FIRMWARE_TOKENS_MAX 100000 /* lines */
#define FU_WAC_FIRMWARE_TOKENS_MAX 100000 /* lines */
#define FU_WAC_FIRMWARE_SECTIONS_MAX 10
typedef struct {