From d5fd8368ef34f67f72910026d0916cc0d188c63b Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 5 Apr 2011 19:48:40 +0300 Subject: [PATCH] kvm tools: Cleanup strstr() in expression Cleanup use of strstr() in an expression in main() function. Signed-off-by: Pekka Enberg --- tools/kvm/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/main.c b/tools/kvm/main.c index 3165bc7489fd..ec729c03eb5c 100644 --- a/tools/kvm/main.c +++ b/tools/kvm/main.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) kvm__setup_cpuid(kvm); strcpy(real_cmdline, "notsc nolapic nosmp noacpi pci=conf1 console=ttyS0 "); - if (!kernel_cmdline || (strstr(kernel_cmdline, "root=") == NULL)) + if (!kernel_cmdline || !strstr(kernel_cmdline, "root=")) strlcat(real_cmdline, "root=/dev/vda rw ", sizeof(real_cmdline)); if (kernel_cmdline) { -- 2.39.5