]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: remove unnecessary dev_set_drvdata() calls
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Fri, 8 Aug 2025 20:48:30 +0000 (23:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Aug 2025 05:21:22 +0000 (07:21 +0200)
commit5f5743e5b599bafe2ec5df2d33f616217a778135
treeaaadd8063b3bb5db03fbfde1e5740fb7824a6f82
parent498a14ce8e898eac7d55977625dc93c1e918e1d5
staging: axis-fifo: remove unnecessary dev_set_drvdata() calls

Remove unnecessary dev_set_drvdata() calls - driver_data will be set to
NULL in device_unbind_cleanup() at driver exit time.

This allows us to remove the 'err_initial' label, simplifying the probe
function a bit.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://lore.kernel.org/r/20250808204831.2618122-1-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c