From patchwork Wed Mar 7 13:17:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi X-Patchwork-Id: 10263999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D7D1360247 for ; Wed, 7 Mar 2018 13:17:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7D5729317 for ; Wed, 7 Mar 2018 13:17:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC3702936D; Wed, 7 Mar 2018 13:17:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5695729317 for ; Wed, 7 Mar 2018 13:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754457AbeCGNRv (ORCPT ); Wed, 7 Mar 2018 08:17:51 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:46361 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbeCGNRu (ORCPT ); Wed, 7 Mar 2018 08:17:50 -0500 Received: by mail-pg0-f67.google.com with SMTP id r26so851622pgv.13; Wed, 07 Mar 2018 05:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=gWjrC5PfkyI7nufiPJFa70HGWxbVUXemXPsffzP2jIo=; b=CjV7P9mPjSR/YucFYFn9afxsgCdcjkITVxcpdLBafmYpiXDxNB0/EWWNcRFOupKKqu w3k2idr+ohU4MJrUJOvAVozIwsZ0Lp/YrC6GB0Kpp4r3DpeyyHXJvZHjcI59BKzFur0b ptBL6Hq30ZSF+bvgAGmtMXfACTgpe+yXLrTLvc1+7Dxdb8+DJBFAOS/VzHbttEHhq4CM 352ftk5z46lpVn4zvllba3ghZl+x43Z7Kq5HhHzwIeaCXMsDlspYdRXoeofLI2PmvqhL bszBdaQsgwL7usNqGYnog2m8FE9As6CYWAoJCxdo79fcAEstr0F/Hque/S79+cPlGrmT 1VFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=gWjrC5PfkyI7nufiPJFa70HGWxbVUXemXPsffzP2jIo=; b=uFaRhmDYNI3ahy619bpcPK9rldzO+NAc6SR02HLt2E+yBiDGm3GFgL4+uceIaupBz+ FeYYJmcrfViN+gxCu4zcw2IFH1lXqVsThS8QXNnu1Xnye3qVKOkb8ykQgrMQ6ZBz0J5M M1+zhCCJqjR5A9vnlZn8qtwiewZfisY8dcLuV5egLXHMkEthGRZJUPw1G9tq0xXpH7UL CsYTSJxPMlrG9c71cnmTzCSUqmyJvhe5KhqqTDpwXwLb1gkcKeT6yjS0jZce2aIL2i+r hdOhjMi4IgAlICvYClazzfsI07NMXz2c2OkZNYLP+94YdV9yb16ReEkpX0JeDTNPSYsC R54w== X-Gm-Message-State: APf1xPCfHlCAH9PQXZPlH+MOXP9cLEb6bs1NPZI0LMuYIIZv43psyCy9 EMTBkxSxO4RMp/uON44aJfA= X-Google-Smtp-Source: AG47ELtlZUW76o4BX+nGXCisU3ybA14jXaGZ4Ej4h/Nownp/KPZ+R12Ae7D9RaRmz7JTDat4ZvHYyg== X-Received: by 10.101.76.71 with SMTP id l7mr18258895pgr.192.1520428669127; Wed, 07 Mar 2018 05:17:49 -0800 (PST) Received: from seema-Inspiron-15-3567 ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id c11sm44734855pfe.109.2018.03.07.05.17.47 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Mar 2018 05:17:47 -0800 (PST) Date: Wed, 7 Mar 2018 18:47:17 +0530 From: Arushi Singhal To: lars@metafoo.de Cc: Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: [PATCH] staging: iio: Remove unnecessary cast on void pointer Message-ID: <20180307131717.GA12326@seema-Inspiron-15-3567> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: Arushi Singhal --- drivers/staging/iio/adc/ad7816.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c index bfe180a..bf76a86 100644 --- a/drivers/staging/iio/adc/ad7816.c +++ b/drivers/staging/iio/adc/ad7816.c @@ -254,7 +254,7 @@ static const struct attribute_group ad7816_attribute_group = { static irqreturn_t ad7816_event_handler(int irq, void *private) { iio_push_event(private, IIO_EVENT_CODE_AD7816_OTI, - iio_get_time_ns((struct iio_dev *)private)); + iio_get_time_ns(private)); return IRQ_HANDLED; }