Skip to content

Commit

Permalink
PCI: Return int from pciconfig_read() syscall
Browse files Browse the repository at this point in the history
Change pciconfig_read() syscall "err" return value from long to int.  This
makes it consistent with pciconfig_write().

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
kwilczynski authored and bjorn-helgaas committed Aug 3, 2021
1 parent a8bd29b commit d6b1715
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pci/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn,
u8 byte;
u16 word;
u32 dword;
long err;
int cfg_ret;
int err, cfg_ret;

err = -EPERM;
dev = NULL;
Expand Down

0 comments on commit d6b1715

Please sign in to comment.