mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 16:07:57 +07:00
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>
This commit is contained in:
parent
186896fdf0
commit
e1834bd0f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user