treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / ath / wil6210 / wil_platform.c
blob10e10dc9fedfb4e6f0e4959942bcf80ea29a284d
1 // SPDX-License-Identifier: ISC
2 /*
3 * Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
4 */
6 #include <linux/device.h>
7 #include "wil_platform.h"
9 int __init wil_platform_modinit(void)
11 return 0;
14 void wil_platform_modexit(void)
18 /**
19 * wil_platform_init() - wil6210 platform module init
21 * The function must be called before all other functions in this module.
22 * It returns a handle which is used with the rest of the API
25 void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
26 const struct wil_platform_rops *rops, void *wil_handle)
28 void *handle = ops; /* to return some non-NULL for 'void' impl. */
30 if (!ops) {
31 dev_err(dev,
32 "Invalid parameter. Cannot init platform module\n");
33 return NULL;
36 /* platform specific init functions should be called here */
38 return handle;