accel/ivpu: Use struct_size()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 29 May 2023 13:28:04 +0000 (15:28 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 8 Jun 2023 05:46:51 +0000 (07:46 +0200)
commit9230d5dcb2fc00e8495dc0063be05690f9a820d8
tree92a2823179c0f036a059abadcf46858119f6a07e
parent1ebc9f0365efa883292caaa87bd393b3a5feafb1
accel/ivpu: Use struct_size()

Use struct_size() instead of hand-writing it. It is less verbose, more
robust and more informative.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Marco Pagani <marpagan@redhat.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/0ae53be873c27c9a8740c4fe6d8e7cd1b1224994.1685366864.git.christophe.jaillet@wanadoo.fr
drivers/accel/ivpu/ivpu_job.c