Patchwork [1/3] net: fix the coding style

login
register
mail settings
Submitter Zhiyong Wu
Date June 18, 2012, 5:13 p.m.
Message ID <1340039632-28562-2-git-send-email-zwu.kernel@gmail.com>
Download mbox | patch
Permalink /patch/165536/
State New
Headers show

Comments

Zhiyong Wu - June 18, 2012, 5:13 p.m.
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 net/socket.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/net/socket.c b/net/socket.c
index dc5ba40..ba8583f 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -301,7 +301,9 @@  static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
     qemu_set_fd_handler(s->fd, net_socket_send_dgram, NULL, s);
 
     /* mcast: save bound address as dst */
-    if (is_connected) s->dgram_dst=saddr;
+    if (is_connected) {
+        s->dgram_dst = saddr;
+    }
 
     return s;