Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63455
b: refs/heads/master
c: 7e5829b
h: refs/heads/master
i:
  63453: 6f89bb3
  63451: 08422d6
  63447: 9487c5b
  63439: 89ab509
  63423: 8f2b8cd
v: v3
  • Loading branch information
Yoann Padioleau authored and Ralf Baechle committed Jul 31, 2007
1 parent 6c515b0 commit 9e23bfe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72db43be8bf610d50d86a9e683e0eff3c2cc5ba4
refs/heads/master: 7e5829b56be5aeb931cf52d78c95285c2b8f50e3
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/ops-emma2rh.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num)
/* check if the bus is top-level */
if (bus->parent != NULL) {
*bus_num = bus->number;
db_assert(bus_num != 0);
db_assert(bus_num != NULL);
} else
*bus_num = 0;

Expand Down
12 changes: 6 additions & 6 deletions trunk/arch/mips/pci/ops-pnx8550.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 * val)
unsigned int data = 0;
int err;

if (bus == 0)
if (bus == NULL)
return -1;

err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, ~(1 << (where & 3)), &data);
Expand Down Expand Up @@ -145,7 +145,7 @@ read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 * val)
unsigned int data = 0;
int err;

if (bus == 0)
if (bus == NULL)
return -1;

if (where & 0x01)
Expand All @@ -168,7 +168,7 @@ static int
read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 * val)
{
int err;
if (bus == 0)
if (bus == NULL)
return -1;

if (where & 0x03)
Expand All @@ -185,7 +185,7 @@ write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val)
unsigned int data = (unsigned int)val;
int err;

if (bus == 0)
if (bus == NULL)
return -1;

switch (where & 0x03) {
Expand Down Expand Up @@ -213,7 +213,7 @@ write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val)
unsigned int data = (unsigned int)val;
int err;

if (bus == 0)
if (bus == NULL)
return -1;

if (where & 0x01)
Expand All @@ -235,7 +235,7 @@ static int
write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val)
{
int err;
if (bus == 0)
if (bus == NULL)
return -1;

if (where & 0x03)
Expand Down

0 comments on commit 9e23bfe

Please sign in to comment.