Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e9e84be authored by Jordan Crouse's avatar Jordan Crouse
Browse files

mhi: controller: Fix warning in mhi_qcom.c



Initialization function isn't correctly checking the return value of
sysfs_create_group:

drivers/bus/mhi/controllers/mhi_qcom.c: In function 'mhi_register_controller':
drivers/bus/mhi/controllers/mhi_qcom.c:610:2: warning: ignoring return value of 'sysfs_create_group', declared with attribute warn_unused_result [-Wunused-result]

Fixes: bebf2ba4 ("mhi: add snapshot for MHI driver stack")
Change-Id: Ic0dedbad089272344f85e46c18f6218b511f4877
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 71f9600f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.*/
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.*/

#include <asm/arch_timer.h>
#include <linux/debugfs.h>
@@ -607,7 +607,8 @@ static struct mhi_controller *mhi_register_controller(struct pci_dev *pci_dev)
	mhi_cntrl->fw_image = firmware_info->fw_image;
	mhi_cntrl->edl_image = firmware_info->edl_image;

	sysfs_create_group(&mhi_cntrl->mhi_dev->dev.kobj, &mhi_qcom_group);
	if (sysfs_create_group(&mhi_cntrl->mhi_dev->dev.kobj, &mhi_qcom_group))
		MHI_ERR("Error while creating the sysfs group\n");

	return mhi_cntrl;