]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] st: clean up dev cleanup in st_probe
authorJeff Mahoney <jeffm@suse.de>
Sat, 18 Aug 2012 19:20:38 +0000 (15:20 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 16:59:28 +0000 (17:59 +0100)
commit06b053da21f61a560a2c107e0d30130d0eac8868
tree1815e0bc169e06a3f057aec22683940537811058
parent463292b6177d2f004dfbedc1df01e79d0e2ccffb
[SCSI] st: clean up dev cleanup in st_probe

st_probe leaves a cdev pointer hanging around that is compared
during the error path and freed later. There's no need for the pointer
to hang around at all. So we free it immediately and simplify the error
handling.

Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/st.c