Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp455412pxy; Fri, 30 Apr 2021 08:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxai2a+iF1Q5AIvndsXNMsB5Pwt1emkNInBywfRBGbQKRUZnkysKApYx2mz4EJ9bgNZJU3G X-Received: by 2002:a17:906:1c8f:: with SMTP id g15mr5023238ejh.20.1619797859226; Fri, 30 Apr 2021 08:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619797859; cv=none; d=google.com; s=arc-20160816; b=IRJs9GJSwrnYOJ2FcY14/GkAHXSnDYN5Idk4byxhVc8bPi+k6s7x1bCD6KwGdclETy WMpD31Wo/UFNherwmyFddyKfok6tprIVsXeruwMtA/XJSwqMLlSd9tRckZbLPB3cWIee m4d7PvYSC6jBKKDnoM/cgCMV9q+7lwGDAjopZbs2UqIW5WnWmrgx8tz7VD/2y2908daj 3qWlkT8TjBNDxZInwHLWylVB+GRX6isPWr9CbCvWP3nA94snY8ndflg9SPEkebw2QCaC o/POKOaCc/CAaQUuIUEkp2N/FlhNQJSU7WWID9V67XwCOLTImzTcpBXFIl1E7vfuUGTW rkzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+G+f+RqY1tQqQC+A6Uop1YINz7gAicX1/Ug6Ztkf9rA=; b=ruG3Ta4Nh3agodZ3fS2OBllQSxOpztfmdoyNZ/YFwhjVh3b5L1/UeXuVz3AtcnSHy2 Jp3qAdlMgC/nmT+I/bPTf7tEOIBrNazxQ1vUeBOdo8Bcz0u0ee/JX/F4hXnj2cKU7hJh F9cnFj1wHA72NhL7FUXkiSA0lfhgc/LHgUdyxpzoSfqksOeSx6ijSHO1+nMf0ESdhRXa Kpn7iHRLkIuDRxgjXCQZPm6jiJxQs0j4ls5pp5Ymd5U0AiiyT8OMwsK6KKOATm7ABDlx XgN9nC5b5QIs5rpeNLyRZduURN6L7su3w6sxu8+wew2LUtgJ1qxLcJDQM7iUH23QwlHC o02g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SW4SMbcB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o6si2642758edi.504.2021.04.30.08.50.36; Fri, 30 Apr 2021 08:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SW4SMbcB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231279AbhD3PsW (ORCPT + 99 others); Fri, 30 Apr 2021 11:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbhD3PsT (ORCPT ); Fri, 30 Apr 2021 11:48:19 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D3EC06174A; Fri, 30 Apr 2021 08:47:30 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id y1so21168779plg.11; Fri, 30 Apr 2021 08:47:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=+G+f+RqY1tQqQC+A6Uop1YINz7gAicX1/Ug6Ztkf9rA=; b=SW4SMbcBTk22iqiR5nvJwSWwuBxN/4ylhbg5TmV2uePMe721u0dht7zRBFGOvj1WIA 8Qv8UyW3fWS94aF3nlMqigks0J7EO2jgeUeV8scG7XR7PLJ99YT1kMuNJd5Lq4Q7XNmV gc5b23dJHoGZJ2fz9frKJGaeOQypFC9mCtRVecG1pJyRv3RlgGBTyNi3DHOcHYB9eMW3 wotgVBeNnZaCRBpYvhhtf3ApzXLZk+8fr98u2H7rkAKKeplPaYfKKJG1mC+0cuCnKNR1 NB8C4rwQ1gPH1kym7spQi4S50Phce1FRqi0JreFJoMcOKR8i5jLmbkaSKtqD1i1aA3bB JwJg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=+G+f+RqY1tQqQC+A6Uop1YINz7gAicX1/Ug6Ztkf9rA=; b=kuQqSj+rDyiXwyYuhs9x5iNtkeLDovcVNJIqbf5uaTAQhAYn9/gOb/wvFHZVArjatw JMl3usQY6tFcDKlFzFyuOeupjPhzwIf65snsn+JOcuZzxEwWMTwj+RqcNO6mPPIlzNmj pBW+/w7F3M5pqXErY2pQFP4+jOXRgpFTyHlbAxvvfzwuNhEogjammJDRHVvVf6jAHCV2 PcOYxlFoTjzwJ/NLOT8f7LeytchZOl0MR1VNgyqhS5n0KiKZwKvHPqhvH+WhqTp7xMa4 rmTfOrMzaB+Ufu+TO1OvTydRquQOnIBoiqXjZDotiG25lWBOzs8ow5+lkIT6gr1J3Onr 5/pA== X-Gm-Message-State: AOAM533jNhfzdLRC+3Cr5hIssuDM94Weq1OfVgp2nhmXQ0jcYGkjaTZy WP8GFx+VkB6/XnNKZp3kXFIrJQB2+kpkuJj8 X-Received: by 2002:a17:902:c106:b029:ee:a12b:c097 with SMTP id 6-20020a170902c106b02900eea12bc097mr2839979pli.27.1619797650285; Fri, 30 Apr 2021 08:47:30 -0700 (PDT) Received: from localhost.localdomain ([2402:8100:30a6:a362:7862:2436:1c0a:c59d]) by smtp.gmail.com with ESMTPSA id o187sm2530591pfb.190.2021.04.30.08.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 08:47:29 -0700 (PDT) From: Piyush Thange To: mchehab@kernel.org, leon@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Piyush Thange Subject: [PATCH 4/4] media: usb: cpia2: Fixed coding style issues Date: Fri, 30 Apr 2021 21:13:14 +0530 Message-Id: <20210430154314.3152-4-pthange19@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210430154314.3152-1-pthange19@gmail.com> References: <20210430154314.3152-1-pthange19@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Addition of more fixes on coding style. Signed-off-by: Piyush Thange --- drivers/media/usb/cpia2/cpia2_v4l.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/cpia2/cpia2_v4l.c b/drivers/media/usb/cpia2/cpia2_v4l.c index 261ced144793..d950f9171208 100644 --- a/drivers/media/usb/cpia2/cpia2_v4l.c +++ b/drivers/media/usb/cpia2/cpia2_v4l.c @@ -883,12 +883,12 @@ static int cpia2_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf) frame = find_earliest_filled_buffer(cam); - if(frame < 0 && file->f_flags&O_NONBLOCK) + if (frame < 0 && file->f_flags&O_NONBLOCK) return -EAGAIN; - if(frame < 0) { + if (frame < 0) { /* Wait for a frame to become available */ - struct framebuf *cb=cam->curbuff; + struct framebuf *cb = cam->curbuff; mutex_unlock(&cam->v4l2_lock); wait_event_interruptible(cam->wq_stream, !video_is_registered(&cam->vdev) || @@ -970,7 +970,7 @@ static int cpia2_mmap(struct file *file, struct vm_area_struct *area) return -ERESTARTSYS; retval = cpia2_remap_buffer(cam, area); - if(!retval) + if (!retval) cam->stream_fh = file->private_data; mutex_unlock(&cam->v4l2_lock); return retval; @@ -1160,10 +1160,10 @@ void cpia2_unregister_camera(struct camera_data *cam) *****************************************************************************/ static void __init check_parameters(void) { - if(buffer_size < PAGE_SIZE) { + if (buffer_size < PAGE_SIZE) { buffer_size = PAGE_SIZE; LOG("buffer_size too small, setting to %d\n", buffer_size); - } else if(buffer_size > 1024*1024) { + } else if (buffer_size > 1024*1024) { /* arbitrary upper limiit */ buffer_size = 1024*1024; LOG("buffer_size ridiculously large, setting to %d\n", @@ -1173,15 +1173,15 @@ static void __init check_parameters(void) buffer_size &= ~(PAGE_SIZE-1); } - if(num_buffers < 1) { + if (num_buffers < 1) { num_buffers = 1; LOG("num_buffers too small, setting to %d\n", num_buffers); - } else if(num_buffers > VIDEO_MAX_FRAME) { + } else if (num_buffers > VIDEO_MAX_FRAME) { num_buffers = VIDEO_MAX_FRAME; LOG("num_buffers too large, setting to %d\n", num_buffers); } - if(alternate < USBIF_ISO_1 || alternate > USBIF_ISO_6) { + if (alternate < USBIF_ISO_1 || alternate > USBIF_ISO_6) { alternate = DEFAULT_ALT; LOG("alternate specified is invalid, using %d\n", alternate); } -- 2.25.1