kvm: Reduce levels of indentation.
This commit is contained in:
parent
226579933b
commit
88d1fe630d
|
@ -796,11 +796,9 @@ _cmd_get(Proc_Info *p, struct kinfo_proc *kp)
|
|||
Eina_Bool have_command = EINA_FALSE;
|
||||
|
||||
kern = kvm_open(NULL, "/dev/null", NULL, O_RDONLY, "kvm_open");
|
||||
if (kern != NULL)
|
||||
if (kern)
|
||||
{
|
||||
if ((args = kvm_getargv(kern, kp, sizeof(name)-1)))
|
||||
{
|
||||
if (args[0])
|
||||
if ((args = kvm_getargv(kern, kp, sizeof(name)-1)) && (args[0]))
|
||||
{
|
||||
char *base = strdup(args[0]);
|
||||
if (base)
|
||||
|
@ -815,7 +813,6 @@ _cmd_get(Proc_Info *p, struct kinfo_proc *kp)
|
|||
}
|
||||
free(base);
|
||||
}
|
||||
}
|
||||
Eina_Strbuf *buf = eina_strbuf_new();
|
||||
for (int i = 0; args[i] != NULL; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue