Skip to content

Commit 37fa997

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[S390] monwriter: fix return code handling
Fix return code handling within monwrite_new_hdr(). Return code handling is everwhere implemented, the return code of the diagnose function was just not passed. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 364c18d commit 37fa997

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/s390/char/monwriter.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int monwrite_new_hdr(struct mon_private *monpriv)
9797
{
9898
struct monwrite_hdr *monhdr = &monpriv->hdr;
9999
struct mon_buf *monbuf;
100-
int rc;
100+
int rc = 0;
101101

102102
if (monhdr->datalen > MONWRITE_MAX_DATALEN ||
103103
monhdr->mon_function > MONWRITE_START_CONFIG ||
@@ -135,7 +135,7 @@ static int monwrite_new_hdr(struct mon_private *monpriv)
135135
mon_buf_count++;
136136
}
137137
monpriv->current_buf = monbuf;
138-
return 0;
138+
return rc;
139139
}
140140

141141
static int monwrite_new_data(struct mon_private *monpriv)

0 commit comments

Comments
 (0)