-
由 Alexandre Belloni 提交于
ds1307->regs is never used before being read or initialized locally. There is no point in keeping a copy in memory. Also limit the size of the read buffer to what is really used, rename buf to regs for consistency and use sizeof() where possible. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>042fa8c7