nvc0: set ret variable if launch desc allocation failed
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Apr 2013 23:22:33 +0000 (00:22 +0100)
committerChristoph Bumiller <christoph.bumiller@speed.at>
Fri, 12 Apr 2013 15:15:14 +0000 (17:15 +0200)
commitac1118d53c0b22db8dcd6fcdcd2d1a245037dbc1
treed89f706be1f64b8dc5e078af969c514b2591aa2a
parent48bcb94dc375af17ceee14693c7cb3fdbb7e2151
nvc0: set ret variable if launch desc allocation failed

Pointed out by gcc

nve4_compute.c: In function 'nve4_launch_grid':
nve4_compute.c:511:7: warning: 'ret' may be used uninitialized in
 this function [-Wmaybe-uninitialized]
    if (ret)
       ^

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Edit by Christoph Bumiller:
Set it to -1 to indicate failure and only when it's actually required.
src/gallium/drivers/nvc0/nve4_compute.c