s3fb: fix error return code in s3_pci_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 23 Sep 2013 15:00:15 +0000 (23:00 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 08:45:15 +0000 (11:45 +0300)
commita2a6fc5f182fdb179a4f5262ee77c2c2684fe0cd
treec5fed39c3114d7ca3e1f4bf1a2e27466fbb5be20
parentfb8a15079a579f4cd0e01c9d37e868f5c2b4994c
s3fb: fix error return code in s3_pci_probe()

Fix to return -EINVAL when virtual vertical size smaller than real
instead of 0, as done elsewhere in this function. Also remove dup code.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/s3fb.c