diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-09-14 17:18:44 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-09-14 17:18:44 +0000 |
| commit | a85adbcd3dee8d062bf49e1f713e718f59ec0e9f (patch) | |
| tree | f161a047c3580e97aebb73877fc767922480ccd2 | |
| parent | 4b301f7e7ab43bb61561786c2ab33f3a3c4a725d (diff) | |
mpr3mr: Fix missing braces
We detect an error condiction and print it. And then unconditionally
jump to the err code, which is incorrect. It's clear from indentation
and code tracing there should be braces here.
Sponsored by: Netflix
| -rw-r--r-- | sys/dev/mpi3mr/mpi3mr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mpi3mr/mpi3mr.c b/sys/dev/mpi3mr/mpi3mr.c index 99edd3542619..4211529e76ad 100644 --- a/sys/dev/mpi3mr/mpi3mr.c +++ b/sys/dev/mpi3mr/mpi3mr.c @@ -2799,10 +2799,11 @@ retry_init: U32 fault = mpi3mr_regread(sc, MPI3_SYSIF_FAULT_OFFSET) & MPI3_SYSIF_FAULT_CODE_MASK; - if (fault == MPI3_SYSIF_FAULT_CODE_INSUFFICIENT_PCI_SLOT_POWER) + if (fault == MPI3_SYSIF_FAULT_CODE_INSUFFICIENT_PCI_SLOT_POWER) { mpi3mr_dprint(sc, MPI3MR_INFO, "controller faulted due to insufficient power, try by connecting it in a different slot\n"); goto err; + } U32 host_diagnostic; timeout = MPI3_SYSIF_DIAG_SAVE_TIMEOUT * 10; |
