Fix svace issue in i2c interface 77/128077/2
authorHyeongsik Min <hyeongsik.min@samsung.com>
Fri, 5 May 2017 01:30:05 +0000 (10:30 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 8 May 2017 00:33:57 +0000 (09:33 +0900)
commitde17393d97b0accc14e243dfa03c8794df456323
tree7dbfbab61a0820a7596469bfe67dcbff3a952c91
parent31953dfcaaa9eb981fb918634f9c2c0a89758d58
Fix svace issue in i2c interface

- Fix UNREACHABLE_CODE in i2c_open
- Add exception handling code in i2c_close
- Pass return value of ioctl in i2c_set_address

Change-Id: I5c8483948bb107034f116c47756231d7a09de57a
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
src/interface/i2c.c