diff options
author | Sanjana Sanikommu <sanjana99reddy99@gmail.com> | 2019-03-21 22:01:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-21 19:57:26 +0100 |
commit | 52012642a599d5ea090e99d6213ea736237ca7a6 (patch) | |
tree | aac56e8147d4b85fbf6c73ba375ae2ae47fe5eb4 /drivers/staging/greybus | |
parent | e2ff9f15e8ac8861929573e4fa80bfe92e1b1805 (diff) | |
download | linux-52012642a599d5ea090e99d6213ea736237ca7a6.tar.gz linux-52012642a599d5ea090e99d6213ea736237ca7a6.tar.bz2 linux-52012642a599d5ea090e99d6213ea736237ca7a6.zip |
staging: greybus: sdio.c: Remove unncessary paranthesis.
Challenge suggested by coccinelle.
Remove unnecessary parathesis around the right hand of
assignment using the below script.
@@
binary operator op = {==,!=,&&,||,>=,<=,&,|};
expression l, r, t;
@@
(
l = (r op t)
|
l =
-(
r
-)
)
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/sdio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c index 38e85033fc4b..a097a8916b3b 100644 --- a/drivers/staging/greybus/sdio.c +++ b/drivers/staging/greybus/sdio.c @@ -275,7 +275,7 @@ static int _gb_sdio_send(struct gb_sdio_host *host, struct mmc_data *data, return -ENOMEM; request = operation->request->payload; - request->data_flags = (data->flags >> 8); + request->data_flags = data->flags >> 8; request->data_blocks = cpu_to_le16(nblocks); request->data_blksz = cpu_to_le16(data->blksz); @@ -329,7 +329,7 @@ static int _gb_sdio_recv(struct gb_sdio_host *host, struct mmc_data *data, return -ENOMEM; request = operation->request->payload; - request->data_flags = (data->flags >> 8); + request->data_flags = data->flags >> 8; request->data_blocks = cpu_to_le16(nblocks); request->data_blksz = cpu_to_le16(data->blksz); @@ -602,9 +602,9 @@ static void gb_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) vdd = 1 << (ios->vdd - GB_SDIO_VDD_SHIFT); request.vdd = cpu_to_le32(vdd); - request.bus_mode = (ios->bus_mode == MMC_BUSMODE_OPENDRAIN ? + request.bus_mode = ios->bus_mode == MMC_BUSMODE_OPENDRAIN ? GB_SDIO_BUSMODE_OPENDRAIN : - GB_SDIO_BUSMODE_PUSHPULL); + GB_SDIO_BUSMODE_PUSHPULL; switch (ios->power_mode) { case MMC_POWER_OFF: |