drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int()
authorjsg <jsg@openbsd.org>
Wed, 27 Mar 2024 04:52:45 +0000 (04:52 +0000)
committerjsg <jsg@openbsd.org>
Wed, 27 Mar 2024 04:52:45 +0000 (04:52 +0000)
From Srinivasan Shanmugam
bf13e50a4b760a0155d4cce869dac8480c5ae839 in linux-6.6.y/6.6.23
7cf1ad2fe10634238b38442a851d89514cb14ea2 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c

index 8dc13d9..623ebac 100644 (file)
@@ -317,7 +317,7 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr,
                                DEBUG("IMM 0x%02X\n", val);
                        return val;
                }
-               return 0;
+               break;
        case ATOM_ARG_PLL:
                idx = U8(*ptr);
                (*ptr)++;