[feature]remove excess whitespace and Modifying judgment conditions

Change-Id: I00542ccbfc4b90ba535c7e2d1d3d2f0dba946fad
diff --git a/framework/lynq-ril-service/src/ril.cpp b/framework/lynq-ril-service/src/ril.cpp
index b66757c..cdf50cf 100755
--- a/framework/lynq-ril-service/src/ril.cpp
+++ b/framework/lynq-ril-service/src/ril.cpp
@@ -77,6 +77,7 @@
 #include "lynq_common.h"
 #include "lynq_sms_manager.h"
 /*lei add*/
+#include <stdbool.h>
 #include "lynq_at.h"
 #include "lynq_user.h"
 #include "lynq_rndis.h"
@@ -3840,11 +3841,11 @@
     sprintf(buf, "uci get lynq_uci_ro.lynq_version.LYNQ_SW_VERSION 2>&1");
     fp=popen(buf, "r");
     int n;
-    while(fgets(buf, sizeof(buf), fp) != NULL){
-        
+    while(fgets(buf, sizeof(buf), fp) != NULL)
+    {
     }
     //parse_version_buf(buf);
-    sprintf(cgmr, "%s %s", "+CGMR: ", buf);
+    sprintf(cgmr, "%s %s", "+CGMR:", buf);
     n = write(ttyGS3_fd,cgmr,strlen(cgmr));
     if(n<0)
     {
@@ -6174,12 +6175,12 @@
     int recv = 0;
     char display[1024] = {0};
     /*For at extension to receive at buffer*/
-    int count_recv = 0;
+    bool flag = false;
     int count_at_cmd = 0;
     len = sizeof(*cli);
     while(1)
     {
-        if(count_recv == 0)
+        if(!flag)
         {
             RLOGE("receive third at cmd\n");
             recv = recvfrom(sockfd, buffer_at, LYNQ_AT_SOCKET_BUFFER, 0, cli, &len);
@@ -6197,6 +6198,7 @@
                 continue;;
             }
             lynq_parse_at_cmd(buffer_at, at_buf_ext, 0);
+            flag = true;
         }
         else
         {
@@ -6219,7 +6221,6 @@
                 }
             }
         }
-        count_recv++;
     }
     return NULL;
 }