commit | 7f303adc4f0aaa71b196d9f983150f3ec3367b46 | [log] [tgz] |
---|---|---|
author | Dong Xu Wang <wdongxu@linux.vnet.ibm.com> | Thu May 09 15:53:49 2013 +0800 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Sun May 12 13:25:55 2013 +0400 |
tree | 7171596d1007df430c2b980888df3be167c90da0 | |
parent | 2d40178a33293603a06fdf3c0fd9988322bc5fda [diff] [blame] |
clean unnecessary code: don't check g_strdup arg for NULL Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/vl.c b/vl.c index 6e6225f..be0a93c 100644 --- a/vl.c +++ b/vl.c
@@ -1215,7 +1215,7 @@ 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) {