]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drivers/rtc/rtc-ds1286.c: fix compiler warning while doing make W=1
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 29 Apr 2013 23:19:20 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:28 +0000 (18:28 -0700)
commitcb72f60c17aea5f0bdd546420ebb16075d965f92
treec4e66b880c71d31db0320b92ec77405620386157
parentbc862f44cb49f401b05d7fc2a400209c97535a28
drivers/rtc/rtc-ds1286.c: fix compiler warning while doing make W=1

below is the warning reported with the gcc (gcc (GCC) 4.7.2 20121109
(Red Hat 4.7.2-8)) with make W=1:

  drivers/rtc/rtc-ds1286.c: In function `ds1286_read_alarm':
  drivers/rtc/rtc-ds1286.c:273:16: warning: variable `cmd' set but not used [-Wunused-but-set-variable]

fixed by removing the variable

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1286.c