Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113791
b: refs/heads/master
c: e9fae18
h: refs/heads/master
i:
  113789: df4d5ce
  113787: 4a5d3ce
  113783: 960d036
  113775: fe86661
  113759: 7165376
  113727: f35b0bc
  113663: e6a0e50
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Oct 13, 2008
1 parent 26fe349 commit 6eb1a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 46aa04f9b678d1d6f3558429109326775ca87715
refs/heads/master: e9fae189caae7c1cf306e30f5b67c6d226ed69cf
7 changes: 2 additions & 5 deletions trunk/arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void gpio_error(unsigned gpio)

static void set_label(unsigned short ident, const char *label)
{
if (label && str_ident) {
if (label) {
strncpy(str_ident[ident].name, label,
RESOURCE_LABEL_SIZE);
str_ident[ident].name[RESOURCE_LABEL_SIZE - 1] = 0;
Expand All @@ -247,9 +247,6 @@ static void set_label(unsigned short ident, const char *label)

static char *get_label(unsigned short ident)
{
if (!str_ident)
return "UNKNOWN";

return (*str_ident[ident].name ? str_ident[ident].name : "UNKNOWN");
}

Expand All @@ -260,7 +257,7 @@ static int cmp_label(unsigned short ident, const char *label)
printk(KERN_ERR "Please provide none-null label\n");
}

if (label && str_ident)
if (label)
return strncmp(str_ident[ident].name,
label, strlen(label));
else
Expand Down

0 comments on commit 6eb1a0c

Please sign in to comment.