Commit e1834bd0 authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

staging: unisys: visornic: remove extraneous error check

Removes an extraneous error check in devdata_initialize(), and updates the
function comment accordingly.
Signed-off-by: default avatarDavid Binder <david.binder@unisys.com>
Reviewed-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 186896fd
...@@ -1342,13 +1342,11 @@ visornic_rx(struct uiscmdrsp *cmdrsp) ...@@ -1342,13 +1342,11 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
* *
* Setup initial values for the visornic based on channel and default * Setup initial values for the visornic based on channel and default
* values. * values.
* Returns a pointer to the devdata if successful, else NULL * Returns a pointer to the devdata structure
*/ */
static struct visornic_devdata * static struct visornic_devdata *
devdata_initialize(struct visornic_devdata *devdata, struct visor_device *dev) devdata_initialize(struct visornic_devdata *devdata, struct visor_device *dev)
{ {
if (!devdata)
return NULL;
devdata->dev = dev; devdata->dev = dev;
devdata->incarnation_id = get_jiffies_64(); devdata->incarnation_id = get_jiffies_64();
return devdata; return devdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment