]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: avoid newly introduced compiler warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 18:47:12 +0000 (10:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 18:47:12 +0000 (10:47 -0800)
commit7835b262640e911e33efd48597af56cb7a5624d0
tree29458ff9b6186df3d2d79b06a386ed647fc1c6f0
parent044245be8d30ada22450fb72afefe9ad3c39463e
mfd: avoid newly introduced compiler warning

Commit 86eee089f956 ("mfd: rtsx: Simplify function return logic")
removed the use of the 'err' variable, but left the variable itself
around, resulting in gcc quite reasonably warning:

    drivers/mfd/rtsx_pcr.c: In function ‘rtsx_pci_set_pull_ctl’:
    drivers/mfd/rtsx_pcr.c:565:6: warning: unused variable ‘err’ [-Wunused-variable]
      int err;
          ^

Get rid of the unused variable, and avoid the new warning.

Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/rtsx_pcr.c