Subject: [PATCH] drivers/isdn: break out of the loop after call isdn_tty_send_msg

From: Chen Gang <[email-masked]>
Date: Thu, 28 Feb 2013 10:57:32 +0800

need break out of the loop after call isdn_tty_send_msg.
    isdn_tty_send_msg is intended to eat the rest of the string.
    so need not scan again the string which appended "+M...".

Signed-off-by: Chen Gang <[email-masked]>
---
 drivers/isdn/i4l/isdn_tty.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index d8a7d83..8ac7b33 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -3587,7 +3587,7 @@ isdn_tty_parse_at(modem_info *info)
 			case 'M':	/* MESSAGE */
 				p++;
 				isdn_tty_send_msg(info, m, p);
-				break;
+				goto tail;
 			default:
 				PARSE_ERROR;
 			}
@@ -3601,6 +3601,8 @@ isdn_tty_parse_at(modem_info *info)
 			PARSE_ERROR;
 		}
 	}
+
+tail:
 #ifdef CONFIG_ISDN_AUDIO
 	if (!info->vonline)
 #endif
-- 
1.7.7.6