From: Vladimir Zapolskiy Date: Wed, 5 Aug 2015 18:13:02 +0000 (+0300) Subject: rtc: m48t59: clean up m48t59_nvram_read()/m48t59_nvram_write() X-Git-Tag: omap-for-v4.3/fixes-rc1~63^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99be3e371b2ac03b936044139be10cf0c7b9cc58;p=pandora-kernel.git rtc: m48t59: clean up m48t59_nvram_read()/m48t59_nvram_write() The change removes redundant sysfs binary file boundary checks, since this task is already done on caller side in fs/sysfs/file.c Spinlock acquisition/release is moved out of the loop body to get atomic states of NVRAM reading and writing operations. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Alexandre Belloni --- Reading git-diff-tree failed