Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106051
b: refs/heads/master
c: 124682c
h: refs/heads/master
i:
  106049: 724470d
  106047: 5d4f6e9
v: v3
  • Loading branch information
Arthur Jones authored and Linus Torvalds committed Jul 25, 2008
1 parent 12f3e07 commit e3e1b3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: f9fc82adca43d38a1b79128d80750bd361e15abe
refs/heads/master: 124682c78563e10ba8b2ecd21b0f1098903b7808
6 changes: 5 additions & 1 deletion trunk/drivers/edac/edac_mc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ static ssize_t csrow_edac_mode_show(struct csrow_info *csrow, char *data,
static ssize_t channel_dimm_label_show(struct csrow_info *csrow,
char *data, int channel)
{
return snprintf(data, EDAC_MC_LABEL_LEN, "%s",
/* if field has not been initialized, there is nothing to send */
if (!csrow->channels[channel].label[0])
return 0;

return snprintf(data, EDAC_MC_LABEL_LEN, "%s\n",
csrow->channels[channel].label);
}

Expand Down

0 comments on commit e3e1b3a

Please sign in to comment.