firmware: read firmware size using i_size_read()
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 13 Jun 2014 15:09:54 +0000 (18:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:27:04 +0000 (15:27 -0700)
commit6af6b163b3191bd2802868f17d4843c58bc4046f
tree7e5c23b2698550828906ea98ca5c1e25e4025020
parent5a1379e8748a5cfa3eb068f812d61bde849ef76c
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: Dmitry Kasatkin <d.kasatkin@samsung.com>
Acked-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c