Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3492635imc; Sun, 24 Feb 2019 06:22:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYMIi8coc8IjVHp6kwt56LUIBoWlNOtegu3Mv00NoXoH8AsWe18dJgq5sJCePlf0Pipz+zj X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr14610099plb.332.1551018122465; Sun, 24 Feb 2019 06:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551018122; cv=none; d=google.com; s=arc-20160816; b=Dqf5duDWlNl3iMz11bJk4bSjE1PlK/gYdJWDGw07UgKDktqZHzmmZUWOM4L+HEx1WQ F+3tBzc8LPob2uZsexX9OOG4K0H3Fjo/PMkK6aCES5ReRVoCLUycjeY0nDaRQbls2K9z 5eWl/rw9lhj7CLsKsZRAwh3PcqcTRDbE4iI1qQr56ru43QksK+dAbT1GiiGYfcN4L8eH c6HuQ3hGXStlkfKuxMEQ7FnvuUyrzMNAdepOc4wNh/sJ+J9Q+PqUUTzznadh9AhoocE2 u37I3GetIYfZoWBhNGZcafTZxIm0ANbeol5YBD+aKUG0Hybrpvl+7BeEEZcU8rhqI5me oqtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=kAyHt58DVE9hh2oPjT8JMjK4jKk/dc2SmFBds3zP/zA=; b=aHQ9+zRHF/v2Oj8QY9CzfgqGcVo3vin1RN5hpLm7GZjgP1qxTkSbaVtr9A8tL/csdG xXd9tscXJJZe9QIPTRv+OmyveabKm5kCSkVLfmYGIon1waIgTYQs4KSSnk+qfmesDDlU K7JhBWoG6NqyrDsnhLteXSqOX8WfMah/dNZ2+JuRwqlSzmvp/1S6PhWJ8/hjOi2wkKwB +CCgDNzPLnCRo54tiHeCRqxLNjV+pfUVHj1lJCNInyeAV731dM30CV2D9lKCLYUjtPGH tBeu9C98opiu+LCaKl3a2MaOJO0REftxfBo7GwRUvxw7vKFCuT6xqFpQoTz6qPb76xIP V6Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E3+RXfPi; 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 q1si6281493pgm.154.2019.02.24.06.21.33; Sun, 24 Feb 2019 06:22:02 -0800 (PST) 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=E3+RXfPi; 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 S1728187AbfBXOT7 (ORCPT + 99 others); Sun, 24 Feb 2019 09:19:59 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37448 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfBXOT7 (ORCPT ); Sun, 24 Feb 2019 09:19:59 -0500 Received: by mail-pl1-f194.google.com with SMTP id q3so3255586pll.4; Sun, 24 Feb 2019 06:19:59 -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=kAyHt58DVE9hh2oPjT8JMjK4jKk/dc2SmFBds3zP/zA=; b=E3+RXfPiw4+g9+mtxR672o4eHrffYX2PipqOv7KWzXYFhWEfR7JIVEvEGYKc8S1RSk 4N3cmctUqyrct7xBV/OcO5rx9SGa57tHjgMtRwkO0rAws2hwN31ufQjoBgTyKPxsKIeG lg/NdHzJZzet5nSW8dHkESdkX8SHkKwHFJuKTcdoR5S/dN7wyNO8oUJCaSmUGVtwDxYZ GeCoAFKl8TUTvUpMatk8SnBeAsacj9edsK6iiHXymWsTjq5/rXJVo9d0/gJcUWCRCjlY 7PTjET6EDRQaxLt6yeK58CtT2j+DQ8ED7e3Dou1J0E0o8QFH7jV3AxlaiJ16isjC3LyP 9Cig== 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=kAyHt58DVE9hh2oPjT8JMjK4jKk/dc2SmFBds3zP/zA=; b=VJ2u2dsG7CqZxFKpDbfPHQkwm4n7YJorurLd+h1+scLS9ahsOfqY2TsJEqIFLAQaIF HpQUd28dt2fx8q5+lCHgmpayUVmmjKGCeGbQDcVfpFabR3AO3xtYCeE0/fcSn0Nshbvx K8EckAuj0wNo/Z5jCQR4OqLlIjvKQfZFz6uoJNqu0FfRhWxqvaQ6tLKepwsxTzKi9Boj YdIfqW771Ko+Hfmpn2kZ0IcVH7DOeBu6/ei5CWCRNgWa8+zTl59quatQwAe8RmxS+wrT z8PG6yqqbMXREpM0EMtjnT5do8paidvQ1W1SctNZkLHooZyGxlN+UBK79vw0o0g02nWH Yr8w== X-Gm-Message-State: AHQUAubqozcAo6olrlQgw7OgFt7oMIkFrybefk+M8khxlntYYsQWE1NF i3YLNscV55pzMvMTlx2IzdOcdZnK X-Received: by 2002:a17:902:6b46:: with SMTP id g6mr14414662plt.21.1551017998849; Sun, 24 Feb 2019 06:19:58 -0800 (PST) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id r28sm15645460pgl.72.2019.02.24.06.19.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 06:19:58 -0800 (PST) Date: Sun, 24 Feb 2019 19:49:52 +0530 From: Bharath Vedartham To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] badblocks: Prefer unsigned int over unsigned Message-ID: <20190224141952.GA3653@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace unsigned with unsigned int to improve readability. Signed-off-by: Bharath Vedartham --- block/badblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/badblocks.c b/block/badblocks.c index 91f7bcf..e3f90c9 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -66,7 +66,7 @@ int badblocks_check(struct badblocks *bb, sector_t s, int sectors, u64 *p = bb->page; int rv; sector_t target = s + sectors; - unsigned seq; + unsigned int seq; if (bb->shift > 0) { /* round the start down, and the end up */ -- 2.7.4