Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3369548yba; Mon, 29 Apr 2019 00:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUj9DfuB1fAypMQTIltrgpP5eqjQjQxw6wFKc3IlomJyqsrlNGsAw2gEW3ZDykJGL0Uvo3 X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr5963616plb.330.1556523620058; Mon, 29 Apr 2019 00:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556523620; cv=none; d=google.com; s=arc-20160816; b=TyRO5mFBwlqE7Ziuv0rF2aDY1QHS447zngrdEj6ED7JVxkxJZ6offrhwtRBZgeARCx B01BLB0w7sQnLbS2r63qFRBMEq9l8LKGjhGF5YKQSKEUc3qPxUlkWNJQqFQKUGh1+l9B 2uq2UnSKo7e3xq1gtUb7vgJfUA05IwtPwV/oU/k/XOUJPmvzZm2l6JYbmWs4tYp9ZnG6 qVi59P/gMDTDmqel5jxh/1TYYuEq8gm9EPt0zRuGGLUuOr8HLf7UaqkOfdpqO7VNSlo9 MYS5woe+5q2p0YKU9r/SMjE0wk1djcE4oleZGgTeTSOZR2ZMX+0FWC3cwm+O15UEPFox LPYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=JVE5mmezCRxz6WW+z9H8b28By3jF0TFZuCkFOKjspBU=; b=uxzrXeHvnZp9QPO4lFU/9aaUmvD0iQyPtC8z96tgoyi1SlUfZaJLopjUT6ED8froyn rzYO7BLLnuv6wPNvOvPns5ipKqSr7VA9y0l4PunNCjMQRebbdnCxHUYlH9ujuclSYBpY GVqJ4Z4BXwQUIsuwrfMmT/2N4hmPHqmYLoQt8SgMblvCoD9VUx624s48Y5i2Nw9B9Hl/ gES5i8x+iTh5P56JfOjAbbSi6QuV417jaTpaqDJvXzdOsMU+ZyuZ8Dk712y7hsxT11FJ rvpPCH8Hb9L28z+CwhprWvKwZ4oG7tckReHaDqNMqppm2Qf5O5W4Z3Rx6qptPUDiV9LF Widg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=niwBPwvE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si32240246plv.329.2019.04.29.00.40.04; Mon, 29 Apr 2019 00:40:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=niwBPwvE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727511AbfD2HhZ (ORCPT + 99 others); Mon, 29 Apr 2019 03:37:25 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42375 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbfD2HhZ (ORCPT ); Mon, 29 Apr 2019 03:37:25 -0400 Received: by mail-pl1-f196.google.com with SMTP id x15so4664731pln.9 for ; Mon, 29 Apr 2019 00:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JVE5mmezCRxz6WW+z9H8b28By3jF0TFZuCkFOKjspBU=; b=niwBPwvEkClbDRK9YJuSfR/YAnw/h5dMpYBXnWsjBRo9UdkYLnka/aYR5Q7xahnsIb as+f30ARN/KtCMGevNIB0IFhdEVlRioN0ls7/DgVufSsEhcD3pPvCOkX+kR7wurJgDQ0 AfpgLTNON+AQhxtN2jqk62c+TBCuNXyFrjduyVWOcpFE9NWYjqpJ0QLhiOGOFgry51RF xKXS/VhlJkxeMb+81VBqOogBaQZjisJZMKVJ2CTFOY464h+3H9sNR06XsK3URQxdDtgB CzRm8dgt5mRLInnpfk2i29EgagbmkXCDUfrlSQFnhEhyouzfrwunzNGSvkchDUFV406W kdGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JVE5mmezCRxz6WW+z9H8b28By3jF0TFZuCkFOKjspBU=; b=VXKqiavqtnb/YCuFNs2pXlwKksT4JGBeRWMWGKh7a0t9AIa/uGwS1BwGO+S29kxT5a GyYMu4d8Lp8mTHY6WZdth9eaAJ9JgypQQ2fBnPal0ALvHI5j5tlQnM88Qc9wnb/SsNPx i2f30crvceYXQyR/D7nxTOd9f153McvcXzRh6YuV09hlStfOk3+UXBZmMvXsT3LaczS7 OqwgSZ0DnzwwXWpa8LQMb6ao+Hs/P7CRXx9Pf+V9tBOo3g3G69uSxYckSwavHvdO9763 UJpUsgIRd7WveHOgiW5UuIT+vqeDejcFYrtkqLnRDrf02u8xV0gxvt6EFCAg5ewkWw7j wRMQ== X-Gm-Message-State: APjAAAWcZHwkYzBKu3AKDqPykQHBYZfFtftuUeZ3jQjCVR/DU2bRG4xe +YmE9dAySYI0ZqPpgEXzJtwk66bjqtE= X-Received: by 2002:a17:902:8545:: with SMTP id d5mr24800187plo.198.1556523444886; Mon, 29 Apr 2019 00:37:24 -0700 (PDT) Received: from localhost.localdomain ([2405:204:12a5:ab58:559f:ec82:1c85:ce7]) by smtp.gmail.com with ESMTPSA id t24sm43485198pfe.110.2019.04.29.00.37.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 00:37:24 -0700 (PDT) From: Vatsala Narang To: gregkh@linuxfoundation.org Cc: eric@anholt.net, stefan.wahren@i2se.com, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, Vatsala Narang Subject: [PATCH] staging: vc04_services: bcm2835-camera: Modify return statement. Date: Mon, 29 Apr 2019 13:06:58 +0530 Message-Id: <20190429073658.32009-1-vatsalanarang@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Modify return statement and remove the respective assignment. Issue found by coccinelle. Signed-off-by: Vatsala Narang --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c index c9b6346111a5..cef6d5b758e8 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c @@ -1507,10 +1507,9 @@ static int set_camera_parameters(struct vchiq_mmal_instance *instance, .use_stc_timestamp = MMAL_PARAM_TIMESTAMP_MODE_RAW_STC }; - ret = vchiq_mmal_port_parameter_set(instance, &camera->control, + return vchiq_mmal_port_parameter_set(instance, &camera->control, MMAL_PARAMETER_CAMERA_CONFIG, &cam_config, sizeof(cam_config)); - return ret; } #define MAX_SUPPORTED_ENCODINGS 20 -- 2.17.1