mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
gpu: host1x: Use a signed return type for do_relocs()
The return type "unsigned int" was used by the do_relocs() function despite the fact that it will eventually return a negative error code. Use a signed integer instead to accomodate for error codes. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
93ec302976
commit
341917fe2b
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ unpin:
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int do_relocs(struct host1x_job *job, struct host1x_bo *cmdbuf)
|
||||
static int do_relocs(struct host1x_job *job, struct host1x_bo *cmdbuf)
|
||||
{
|
||||
int i = 0;
|
||||
u32 last_page = ~0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue