From: Heiko Carstens Date: Mon, 23 May 2011 08:24:27 +0000 (+0200) Subject: [S390] monwriter: fix return code handling X-Git-Tag: upstream/snapshot3+hdmi~10322^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37fa9975b28a2d86a5b47ec17e6d845dbd899c60;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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 Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/monwriter.c b/drivers/s390/char/monwriter.c index e0702d3..4600aa1 100644 --- a/drivers/s390/char/monwriter.c +++ b/drivers/s390/char/monwriter.c @@ -97,7 +97,7 @@ static int monwrite_new_hdr(struct mon_private *monpriv) { struct monwrite_hdr *monhdr = &monpriv->hdr; struct mon_buf *monbuf; - int rc; + int rc = 0; if (monhdr->datalen > MONWRITE_MAX_DATALEN || monhdr->mon_function > MONWRITE_START_CONFIG || @@ -135,7 +135,7 @@ static int monwrite_new_hdr(struct mon_private *monpriv) mon_buf_count++; } monpriv->current_buf = monbuf; - return 0; + return rc; } static int monwrite_new_data(struct mon_private *monpriv)