OSDN Git Service

staging: gs_fpgaboot: drop wrapper function 'finish_driver'
authorEva Rachel Retuya <eraretuya@gmail.com>
Wed, 2 Mar 2016 14:23:46 +0000 (22:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commitbbbdc23e30b813d90d1cc9dd5caaaaf5e35b6878
tree9a0c2b9c130c73c86339fc3ce25d13916c93ea67
parent18f038e6bfb715310526ac05e4f20e55683471de
staging: gs_fpgaboot: drop wrapper function 'finish_driver'

Remove the function 'finish_driver' since a direct call to
platform_device_unregister() is intuitive enough to signify the original
intention of the function being removed. Coccinelle semantic patch used to
detect this:

@@
identifier wrapper, func;
type T;
@@

*T wrapper(...)
{
(
return func(...);
|
func(...);
)
}

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gs_fpgaboot/gs_fpgaboot.c