lkml.org 
[lkml]   [2015]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND 3/4] sound/fabrics/layout: make aoa_fabric_layout_init return directly
    Date
    Catching the return value of soundbus_register_driver in
    aoa_fabric_layout_init is not necessary, let's return it
    directly.

    No functional change.

    Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
    ---
    sound/aoa/fabrics/layout.c | 7 +------
    1 file changed, 1 insertion(+), 6 deletions(-)

    diff --git a/sound/aoa/fabrics/layout.c b/sound/aoa/fabrics/layout.c
    index 8f71f7e..b6ba091 100644
    --- a/sound/aoa/fabrics/layout.c
    +++ b/sound/aoa/fabrics/layout.c
    @@ -1161,12 +1161,7 @@ static struct soundbus_driver aoa_soundbus_driver = {

    static int __init aoa_fabric_layout_init(void)
    {
    - int err;
    -
    - err = soundbus_register_driver(&aoa_soundbus_driver);
    - if (err)
    - return err;
    - return 0;
    + return soundbus_register_driver(&aoa_soundbus_driver);
    }

    static void __exit aoa_fabric_layout_exit(void)
    --
    1.9.1



    \
     
     \ /
      Last update: 2015-09-23 16:21    [W:6.679 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site