lguest: remove bogus NULL cpu check If lg isn't NULL, and cpu_id is sane, &lg->cpus[cpu_id] can't be NULL. Signed-off-by: Rusty Russell --- drivers/lguest/lguest_user.c | 2 -- 1 file changed, 2 deletions(-) diff -r d0ea8807cadb drivers/lguest/lguest_user.c --- a/drivers/lguest/lguest_user.c Thu Mar 27 11:34:48 2008 +1100 +++ b/drivers/lguest/lguest_user.c Thu Mar 27 11:35:55 2008 +1100 @@ -251,8 +251,6 @@ static ssize_t write(struct file *file, if (!lg || (cpu_id >= lg->nr_cpus)) return -EINVAL; cpu = &lg->cpus[cpu_id]; - if (!cpu) - return -EINVAL; /* Once the Guest is dead, you can only read() why it died. */ if (lg->dead)