<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Fixes the following checkpatch errors:<br /><br />ERROR: do not use assignment in if condition<br /><br />Signed-off-by: Ran Sun <<a href="mailto:xujianghui@cdjrlc.com">sunran001@208suo.com</a>><br />---<br /> drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c | 3 ++-<br /> 1 file changed, 2 insertions(+), 1 deletion(-)<br /><br />diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c<br />index d1ce4309cfb8..35ab4fa5d18e 100644<br />--- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c<br />+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c<br />@@ -113,7 +113,8 @@ gk104_volt_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,<br />         volt_func = &gk104_volt_pwm;<br />     }<br /> <br />-    if (!(volt = kzalloc(sizeof(*volt), GFP_KERNEL)))<br />+    volt = kzalloc(sizeof(*volt), GFP_KERNEL);<br />+    if (!volt)<br />         return -ENOMEM;<br />     nvkm_volt_ctor(volt_func, device, type, inst, &volt->base);<br />     *pvolt = &volt->base;</div>

</body></html>