From: jsg Date: Wed, 27 Mar 2024 04:52:45 +0000 (+0000) Subject: drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7c7baa3feb91b38346b11aec85f82c3204536e71;p=openbsd drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int() From Srinivasan Shanmugam bf13e50a4b760a0155d4cce869dac8480c5ae839 in linux-6.6.y/6.6.23 7cf1ad2fe10634238b38442a851d89514cb14ea2 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c index 8dc13d9825b..623ebac69b8 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c @@ -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)++;