sound: read i_size with i_size_read()
authorXiaochen Wang <wangxiaochen0@gmail.com>
Fri, 18 Mar 2011 08:29:25 +0000 (16:29 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2011 14:14:57 +0000 (15:14 +0100)
commit977a6ef3c0cb622b572fb8e2e5088dbe09521375
tree561b8544ad980f3ab3fd19f7475a304aea1f94bf
parentd351cf4603edb2a5bfa9a48d06c425511c63f2a3
sound: read i_size with i_size_read()

Convert direct read of inode->i_size to using i_size_read().
i_size_read is guaranteed to return a valid value and
its caller does not need to use addtional locking.

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sound_firmware.c