drm/nouveau/secboot/gm20b: fix the error return code in gm20b_secboot_tegra_read_wpr()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Apr 2017 14:36:42 +0000 (14:36 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 29 Apr 2017 12:39:23 +0000 (22:39 +1000)
commit48907c23ea3307a6b6368698c1e786152cd45588
tree209476fb0b91723390b6edb2f63bfe23d3a2b40a
parent60b95d709525e3ce1c51e1fc93175dcd1755d345
drm/nouveau/secboot/gm20b: fix the error return code in gm20b_secboot_tegra_read_wpr()

The error return code PTR_ERR(mc) is always 0 since mc is
equal to 0 in this error handling case.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c