Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208484
b: refs/heads/master
c: a67ef27
h: refs/heads/master
v: v3
  • Loading branch information
Denys Vlasenko authored and Linus Torvalds committed Aug 11, 2010
1 parent 805ef43 commit e93eba7
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 26c5be3c750df6f8a9193d478905627ec75f7f41
refs/heads/master: a67ef278e24b1fe5ab8f5e8ef27f9654b91732de
5 changes: 2 additions & 3 deletions trunk/drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ static int ofonly __read_mostly;
int fb_get_options(char *name, char **option)
{
char *opt, *options = NULL;
int opt_len, retval = 0;
int retval = 0;
int name_len = strlen(name), i;

if (name_len && ofonly && strncmp(name, "offb", 4))
Expand All @@ -1796,8 +1796,7 @@ int fb_get_options(char *name, char **option)
for (i = 0; i < FB_MAX; i++) {
if (video_options[i] == NULL)
continue;
opt_len = strlen(video_options[i]);
if (!opt_len)
if (!video_options[i][0])
continue;
opt = video_options[i];
if (!strncmp(name, opt, name_len) &&
Expand Down

0 comments on commit e93eba7

Please sign in to comment.