fs: avoid possible NULL dereference in fs_devread
It is unwise to first dereference a variable and then to check if it was NULL. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NMarek Behun <marek.behun@nic.cz> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
Showing
想要评论请 注册 或 登录