History

mfd: avoid newly introduced compiler warning

Commit b158b69a3765 ("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.

Linus Torvalds committed 11 years ago

Commit 4dcee4d1 parent bc914531 file · +0 −2Browse files

Unified · Split

drivers/mfd/rtsx_pcr.c+0−2
@@ -562,8 +562,6 @@ EXPORT_SYMBOL_GPL(rtsx_pci_write_ppbuf); · 561 unmodified lines
562562
563563 static int rtsx_pci_set_pull_ctl(struct rtsx_pcr *pcr, const u32 *tbl)
564564 {
565− int err;
566−
567565 rtsx_pci_init_cmd(pcr);
568566
569567 while (*tbl & 0xFFFF0000) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t