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

Commit 624d37ba authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Check the return value of sysfs functions



Do a WARN_ON check for sysfs_create_file and sysfs_create_bin_file to
avoid a compiler warning.

Fixes: 41b90d7b ("msm: kgsl: Remove a few unused device tree properties")
Change-Id: Ic0dedbadede06484faf0dde107a6cde08b89a40a
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 2cfd8943
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1130,8 +1130,8 @@ void kgsl_device_snapshot_probe(struct kgsl_device *device, u32 size)
		&device->dev->kobj, "snapshot"))
		return;

	sysfs_create_bin_file(&device->snapshot_kobj, &snapshot_attr);
	sysfs_create_files(&device->snapshot_kobj, snapshot_attrs);
	WARN_ON(sysfs_create_bin_file(&device->snapshot_kobj, &snapshot_attr));
	WARN_ON(sysfs_create_files(&device->snapshot_kobj, snapshot_attrs));
}

/**