X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=sound%2Fppc%2Fkeywest.c;h=6e5daae18f9d0edb813016292b2a1809d9e3aa9b;hb=353b7a55dcaf5fb8758e09ebe2ddf5f3adbac7c5;hp=a8915100d6bb588ef70ecaeaf3be35641ca3aff6;hpb=7c2becf7968bda70c457565d42d06f76251edefe;p=linux-2.6-microblaze.git diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index a8915100d6bb..6e5daae18f9d 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c @@ -114,7 +114,8 @@ int snd_pmac_tumbler_post_init(void) if (!keywest_ctx || !keywest_ctx->client) return -ENXIO; - if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { + err = keywest_ctx->init_client(keywest_ctx); + if (err < 0) { snd_printk(KERN_ERR "tumbler: %i :cannot initialize the MCS\n", err); return err; } @@ -136,7 +137,8 @@ int snd_pmac_keywest_init(struct pmac_keywest *i2c) keywest_ctx = i2c; - if ((err = i2c_add_driver(&keywest_driver))) { + err = i2c_add_driver(&keywest_driver); + if (err) { snd_printk(KERN_ERR "cannot register keywest i2c driver\n"); i2c_put_adapter(adap); return err;