diff options
author | Thierry Reding <treding@nvidia.com> | 2018-03-23 13:31:24 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-05-18 21:50:40 +0200 |
commit | d4ad3ad9b81b73f568227563988b67708291900b (patch) | |
tree | ae57a11a3b2e672a345741df478700423eb85a15 /drivers/gpu/host1x/intr.c | |
parent | bf3d41ccabb53c57e19fcfc8b81d790043ac2bed (diff) |
gpu: host1x: Cleanup loop variable usage
Use unsigned int where possible and don't unnecessarily initialize the
loop variable.
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/intr.c')
-rw-r--r-- | drivers/gpu/host1x/intr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/intr.c b/drivers/gpu/host1x/intr.c index 8b4fad0ab35d..6028cf7b681f 100644 --- a/drivers/gpu/host1x/intr.c +++ b/drivers/gpu/host1x/intr.c @@ -144,7 +144,7 @@ static const action_handler action_handlers[HOST1X_INTR_ACTION_COUNT] = { static void run_handlers(struct list_head completed[HOST1X_INTR_ACTION_COUNT]) { struct list_head *head = completed; - int i; + unsigned int i; for (i = 0; i < HOST1X_INTR_ACTION_COUNT; ++i, ++head) { action_handler handler = action_handlers[i]; |