projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d40178
)
clean unnecessary code: don't check g_strdup arg for NULL
author
Dong Xu Wang
<wdongxu@linux.vnet.ibm.com>
Thu, 9 May 2013 07:53:49 +0000
(15:53 +0800)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Sun, 12 May 2013 09:25:55 +0000
(13:25 +0400)
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/uri.c
patch
|
blob
|
history
vl.c
patch
|
blob
|
history
diff --git
a/util/uri.c
b/util/uri.c
index 4238729b83f467542a630d9ab8799a53f2a43a1a..e348c1768c4adbd3a7bbdf1a40da2a3632306de8 100644
(file)
--- a/
util/uri.c
+++ b/
util/uri.c
@@
-2162,7
+2162,7
@@
query_params_append (struct QueryParams *ps,
}
ps->p[ps->n].name = g_strdup(name);
- ps->p[ps->n].value =
value ? g_strdup(value) : NULL
;
+ ps->p[ps->n].value =
g_strdup(value)
;
ps->p[ps->n].ignore = 0;
ps->n++;
diff --git
a/vl.c
b/vl.c
index 6e6225f09b51a11d4e671464d89161f560fffbe9..be0a93c53dab043efa2b03c8d38945ac8bb9d107 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-1215,7
+1215,7
@@
void add_boot_device_path(int32_t bootindex, DeviceState *dev,
node = g_malloc0(sizeof(FWBootEntry));
node->bootindex = bootindex;
- node->suffix =
suffix ? g_strdup(suffix) : NULL
;
+ node->suffix =
g_strdup(suffix)
;
node->dev = dev;
QTAILQ_FOREACH(i, &fw_boot_order, link) {