mirror-linux/drivers/ufs/host
Krzysztof Kozlowski 946574434a scsi: ufs: qcom: Fix confusing cleanup.h syntax
Initializing automatic __free variables to NULL without need (e.g.
branches with different allocations), followed by actual allocation is
in contrary to explicit coding rules guiding cleanup.h:

"Given that the "__free(...) = NULL" pattern for variables defined at
the top of the function poses this potential interdependency problem the
recommendation is to always define and assign variables in one statement
and not group variable definitions at the top of the function when
__free() is used."

Code does not have a bug, but is less readable and uses discouraged
coding practice, so fix that by moving declaration to the place of
assignment.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20251208020807.5043-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-12-08 22:11:00 -05:00
..
Kconfig scsi: ufs: amd-versal2: Add UFS support for AMD Versal Gen 2 SoC 2025-10-29 23:00:49 -04:00
Makefile scsi: ufs: amd-versal2: Add UFS support for AMD Versal Gen 2 SoC 2025-10-29 23:00:49 -04:00
cdns-pltfrm.c Merge patch series "scsi: ufs: Bug fixes for ufs core and platform drivers" 2024-11-20 22:04:15 -05:00
tc-dwc-g210-pci.c scsi: ufs: Replace deprecated PCI functions 2024-11-06 20:45:32 -05:00
tc-dwc-g210-pltfrm.c Merge patch series "scsi: ufs: Bug fixes for ufs core and platform drivers" 2024-11-20 22:04:15 -05:00
tc-dwc-g210.c scsi: ufs: Fix kernel-doc headers 2023-07-31 15:17:50 -04:00
tc-dwc-g210.h
ti-j721e-ufs.c scsi: ufs: ti-j721e: Add suspend-resume support 2025-11-08 12:58:07 -05:00
ufs-amd-versal2.c scsi: ufs: amd-versal2: Add UFS support for AMD Versal Gen 2 SoC 2025-10-29 23:00:49 -04:00
ufs-exynos.c scsi: ufs: exynos: Correct sync pattern mask timing comment 2025-09-15 21:43:11 -04:00
ufs-exynos.h Merge patch series "ufs-exynos stability fixes for gs101" 2025-04-03 09:58:05 -04:00
ufs-hisi.c scsi: ufs: Constify the third pwr_change_notify() argument 2025-02-12 22:25:06 -05:00
ufs-hisi.h
ufs-mediatek-sip.h scsi: ufs: mediatek: Support rtff in PM flow 2024-03-25 21:03:00 -04:00
ufs-mediatek-trace.h
ufs-mediatek.c Merge patch series "Enhance UFS Mediatek Driver" 2025-10-21 21:37:57 -04:00
ufs-mediatek.h scsi: ufs: host: mediatek: Support new features for MT6991 2025-10-21 21:36:46 -04:00
ufs-qcom.c scsi: ufs: qcom: Fix confusing cleanup.h syntax 2025-12-08 22:11:00 -05:00
ufs-qcom.h Merge patch series "Simplify MCQ resource mapping" 2025-09-09 22:53:10 -04:00
ufs-renesas.c scsi: ufs: renesas: Add initialization code for R-Car S4-8 ES1.2 2025-03-10 21:35:54 -04:00
ufs-rockchip.c scsi: ufs: rockchip: Fix compile error without CONFIG_GPIOLIB 2025-11-19 22:34:41 -05:00
ufs-rockchip.h scsi: ufs: rockchip: Initial support for UFS 2025-02-24 19:18:44 -05:00
ufs-sprd.c scsi: ufs: Constify the third pwr_change_notify() argument 2025-02-12 22:25:06 -05:00
ufs-sprd.h scsi: ufs: ufs-unisoc: Add support for Unisoc UFS host controller 2023-01-11 21:17:18 -05:00
ufshcd-dwc.c scsi: ufs: Fix kernel-doc headers 2023-07-31 15:17:50 -04:00
ufshcd-dwc.h scsi: ufs: amd-versal2: Add UFS support for AMD Versal Gen 2 SoC 2025-10-29 23:00:49 -04:00
ufshcd-pci.c scsi: ufs: ufs-pci: Set UFSHCD_QUIRK_PERFORM_LINK_STARTUP_ONCE for Intel ADL 2025-10-29 23:20:19 -04:00
ufshcd-pltfrm.c scsi: ufs: pltfrm: Add DT support to limit HS gear and gear rate 2025-09-24 22:27:47 -04:00
ufshcd-pltfrm.h scsi: ufs: pltfrm: Add DT support to limit HS gear and gear rate 2025-09-24 22:27:47 -04:00
ufshci-dwc.h