The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a85adbcd3dee8d062bf49e1f713e718f59ec0e9f

commit a85adbcd3dee8d062bf49e1f713e718f59ec0e9f
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2025-09-14 17:18:44 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2025-09-14 17:18:44 +0000

    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
---
 sys/dev/mpi3mr/mpi3mr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;

Reply via email to