summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvhost_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/nvhost_channel.c')
-rw-r--r--drivers/video/tegra/host/nvhost_channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/nvhost_channel.c b/drivers/video/tegra/host/nvhost_channel.c
index d533ef3cd737..e58b27c0c653 100644
--- a/drivers/video/tegra/host/nvhost_channel.c
+++ b/drivers/video/tegra/host/nvhost_channel.c
@@ -43,9 +43,9 @@ struct nvhost_channel *nvhost_getchannel(struct nvhost_channel *ch)
} else if (ch->desc->exclusive) {
err = -EBUSY;
}
- if (!err) {
+ if (!err)
ch->refcount++;
- }
+
mutex_unlock(&ch->reflock);
/* Keep alive modules that needs to be when a channel is open */