From patchwork Sun Feb 24 14:19:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharath Vedartham X-Patchwork-Id: 10827999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B59617E9 for ; Sun, 24 Feb 2019 14:21:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77D9A2AB92 for ; Sun, 24 Feb 2019 14:21:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AD622ABB8; Sun, 24 Feb 2019 14:21:46 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 14CB82AB92 for ; Sun, 24 Feb 2019 14:21:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728004AbfBXOT7 (ORCPT ); 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-Google-Smtp-Source: AHgI3Ia/sbshLrsSRi56iTZBVtuNLen/TzXSb0/NNnIbKIMRh8P+0GcFv8sWKab7fYi5eV4TnOUjDg== 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-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 */