]> Gentwo Git Trees - linux/.git/commit
soc: mediatek: mtk-cmdq: Move cmdq_instruction init to declaration
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 8 Oct 2024 09:32:20 +0000 (11:32 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 21 Oct 2024 14:00:51 +0000 (16:00 +0200)
commit34771841a6a1e0bad73d955e9b26e60ae32545bb
tree188ac0e79bf016154e8e346ad4366ad2431a0d9c
parent4b3347215f2600deb7d69c5d943c938b8d7daa58
soc: mediatek: mtk-cmdq: Move cmdq_instruction init to declaration

Move, where possible, the initialization of struct cmdq_instruction
variables to their declaration to compress the code.

While at it, also change an instance of open-coded mask to use the
GENMASK() macro instead, and instances of `ret = func(); return ret;`
to the equivalent (but shorter) `return func()`.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/soc/mediatek/mtk-cmdq-helper.c