summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:40:08 +1000
commit5b920d926422fdc5b40b703d72344d5e20b3872a (patch)
treeb264b2563e67218a2b4102b8b87ae27310b09885 /drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c
parente7d65181045898a6da80add0392765e253b0023c (diff)
downloadop-kernel-dev-5b920d926422fdc5b40b703d72344d5e20b3872a.zip
op-kernel-dev-5b920d926422fdc5b40b703d72344d5e20b3872a.tar.gz
drm/nouveau/i2c: cosmetic changes
This is purely preparation for upcoming commits, there should be no code changes here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c
index 2a2dd47..be93647 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/g94.c
@@ -111,7 +111,7 @@ g94_aux(struct nvkm_i2c_port *base, bool retry,
AUX_DBG("%d: 0x%08x %d\n", type, addr, size);
ret = auxch_init(aux, ch);
- if (ret)
+ if (ret < 0)
goto out;
stat = nv_rd32(aux, 0x00e4e8 + (ch * 0x50));
OpenPOWER on IntegriCloud