aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visornic
diff options
context:
space:
mode:
authorDavid Binder <david.binder@unisys.com>2016-05-13 23:17:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-07 22:58:16 -0700
commite1834bd0f6e2e00b04dc992d15051fb43790814e (patch)
tree29df515e6b90e814b08a197f8c2c4456087ca7aa /drivers/staging/unisys/visornic
parentstaging: unisys: visornic: check for error instead of success (diff)
downloadlinux-dev-e1834bd0f6e2e00b04dc992d15051fb43790814e.tar.xz
linux-dev-e1834bd0f6e2e00b04dc992d15051fb43790814e.zip
staging: unisys: visornic: remove extraneous error check
Removes an extraneous error check in devdata_initialize(), and updates the function comment accordingly. Signed-off-by: David Binder <david.binder@unisys.com> Reviewed-by: Tim Sell <Timothy.Sell@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visornic')
-rw-r--r--drivers/staging/unisys/visornic/visornic_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c
index af81d3131cb7..4e3e67c7fe4e 100644
--- a/drivers/staging/unisys/visornic/visornic_main.c
+++ b/drivers/staging/unisys/visornic/visornic_main.c
@@ -1342,13 +1342,11 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
*
* Setup initial values for the visornic based on channel and default
* values.
- * Returns a pointer to the devdata if successful, else NULL
+ * Returns a pointer to the devdata structure
*/
static struct visornic_devdata *
devdata_initialize(struct visornic_devdata *devdata, struct visor_device *dev)
{
- if (!devdata)
- return NULL;
devdata->dev = dev;
devdata->incarnation_id = get_jiffies_64();
return devdata;