hsi: fix double kfree
authorGeliang Tang <geliangtang@163.com>
Thu, 1 Oct 2015 14:35:21 +0000 (22:35 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 14 Oct 2015 11:22:00 +0000 (13:22 +0200)
commitf098a045350ecd6045f2f2d5a50fecf2a98962d7
treec28faea124ce2751d47b637d3bd38390269758c0
parentc616ac28a5b392a03eaa1bbab2bdb1d8931cfdb8
hsi: fix double kfree

When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.

Fixes: a2aa24734d9db ("HSI: Add common DT binding for HSI client devices")
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/hsi.c