firmware: read firmware size using i_size_read()
There is no need to read attr because inode structure contains size of the file. Use i_size_read() instead. Signed-off-by: NDmitry Kasatkin <d.kasatkin@samsung.com> Acked-by: NMing Lei <ming.lei@canonical.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录