Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83142
b: refs/heads/master
c: 0a8320b
h: refs/heads/master
v: v3
  • Loading branch information
Alejandro Martinez Ruiz authored and Linus Torvalds committed Feb 5, 2008
1 parent 70c7c86 commit 0015bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: b9e5e119fd9905c2a06f73a96f9c18aa760a8a65
refs/heads/master: 0a8320b04c0762a1c65b5800b84023b454c2da54
4 changes: 1 addition & 3 deletions trunk/drivers/dio/dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,14 @@ static struct dioname names[] =
#undef DIONAME
#undef DIOFBNAME

#define NUMNAMES (sizeof(names) / sizeof(struct dioname))

static const char *unknowndioname
= "unknown DIO board -- please email <linux-m68k@lists.linux-m68k.org>!";

static const char *dio_getname(int id)
{
/* return pointer to a constant string describing the board with given ID */
unsigned int i;
for (i = 0; i < NUMNAMES; i++)
for (i = 0; i < ARRAY_SIZE(names); i++)
if (names[i].id == id)
return names[i].name;

Expand Down

0 comments on commit 0015bbc

Please sign in to comment.