summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgrp/dgrp_sysfs.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-10-11 17:21:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 15:44:30 -0700
commit720a9bece0c132a9095e997969f07d8694816bbc (patch)
treeed6191135ba3b3806c2e7508f264f7c9f34d609c /drivers/staging/dgrp/dgrp_sysfs.c
parent69afc09042290807b4a8d2756f1fc3b49ff269ee (diff)
downloadlinux-720a9bece0c132a9095e997969f07d8694816bbc.tar.bz2
staging: dgrp: fix some warnings
Just squashing these to get them out of the analysis queue. nd_ps_desc is an array not a pointer so comparing it with NULL is silly (be nice if gcc shouted about this). And there are some slightly pointless comparisons too. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgrp/dgrp_sysfs.c')
-rw-r--r--drivers/staging/dgrp/dgrp_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgrp/dgrp_sysfs.c b/drivers/staging/dgrp/dgrp_sysfs.c
index e5a3c88d016e..129be3caa97e 100644
--- a/drivers/staging/dgrp/dgrp_sysfs.c
+++ b/drivers/staging/dgrp/dgrp_sysfs.c
@@ -177,7 +177,7 @@ static ssize_t dgrp_node_description_show(struct device *c,
if (!nd)
return 0;
- if (nd->nd_state == NS_READY && nd->nd_ps_desc)
+ if (nd->nd_state == NS_READY)
return snprintf(buf, PAGE_SIZE, "%s\n", nd->nd_ps_desc);
return 0;
}