drm/nouveau/acr: fix a coding style in nvkm_acr_lsfw_load_bl_inst_data_sig()
Subsystems (3)
PATCH 1/1 drm/nouveau/acr: fix a coding style in nvkm_acr_lsfw_load_bl_inst_data_sig()
This patch performs the following changes:
1. remove a redundant parentheses around the nvkm_acr_lsfw_add() calls
2. do assignment before this if condition, it is more readable
Signed-off-by Jing Xiangfeng <[email protected]>
--- drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c +2 -1
@@ -191,7 +191,8 @@ nvkm_acr_lsfw_load_bl_inst_data_sig(struct nvkm_subdev *subdev,u32 *bldata;int ret; -if (IS_ERR ((lsfw =nvkm_acr_lsfw_add (func, acr, falcon, id)))) + lsfw =nvkm_acr_lsfw_add (func, acr, falcon, id); +if (IS_ERR (lsfw))return PTR_ERR (lsfw); ret =nvkm_firmware_load_name (subdev, path,"bl" , ver, &bl);
Signature · 1 line
2.17.1
Reviewed-by Karol Herbst <[email protected]>
Quoted 32 lines · Jing Xiangfeng
This patch performs the following changes:
1. remove a redundant parentheses around thenvkm_acr_lsfw_add()calls
2. do assignment before this if condition, it is more readableSigned-off-by Jing Xiangfeng <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c +2
-2@@ -191,7 +191,8 @@ nvkm_acr_lsfw_load_bl_inst_data_sig(struct nvkm_subdev *subdev,u32 *bldata;int ret; -if (IS_ERR ((lsfw =nvkm_acr_lsfw_add (func, acr, falcon, id)))) + lsfw =nvkm_acr_lsfw_add (func, acr, falcon, id); +if (IS_ERR (lsfw))return PTR_ERR (lsfw); ret =nvkm_firmware_load_name (subdev, path,"bl" , ver, &bl); --2.17.1
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau