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

Skip to content
Commit 30a2b230 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Avoid mixing signed and unsigned ints in kgsl_sysfs_store



kstrtou32 returns negative on error or 0 on success.  kgsl_sysfs_store
then proceeded to either return the negative value or the unsigned int
'count'.  Furthermore it compared the return value of kgsl_sysfs_store
against an unsigned int so streams were crossed everywhere.

Remove the uneeded count paramater, return 0 or negative from
kgsl_sysfs_store and handle it appropriately.

Change-Id: Ic0dedbad40e0b914cd06f5a9003a289d3307a14e
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent c4251672
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment