]> git.baikalelectronics.ru Git - kernel.git/commit
[media] go7007-usb: only use go->dev after allocated
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 13 Jan 2014 17:30:24 +0000 (15:30 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 13 Jan 2014 18:28:17 +0000 (16:28 -0200)
commitdd666fef26fe27da5ae3c061dd663a61f6f91258
treeb871fe2f56322a8cdf2c9d8fb2f13acbd7644f7e
parent3e538a7fd2fa8c46382b2512ad3b21e50897ca74
[media] go7007-usb: only use go->dev after allocated

Fixes those warnings:
drivers/staging/media/go7007/go7007-usb.c: In function 'go7007_usb_probe':
drivers/staging/media/go7007/go7007-usb.c:1060: warning: 'go' is used uninitialized in this function

While here, comment a code that will never run.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/go7007/go7007-usb.c