From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon Romanovsky Subject: Re: [PATCH for-next 2/4] IB/core: Add ib_is_udata_cleared Date: Mon, 9 Nov 2015 21:18:17 +0200 Message-ID: <20151109191817.GE4023@leon.nu> References: <1447086657-15358-1-git-send-email-matanb@mellanox.com> <1447086657-15358-3-git-send-email-matanb@mellanox.com> Reply-To: leon-2ukJVAZIZ/Y@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1447086657-15358-3-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matan Barak Cc: Eli Cohen , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Doug Ledford , Eran Ben Elisha , Yann Droneaud List-Id: linux-rdma@vger.kernel.org On Mon, Nov 09, 2015 at 06:30:55PM +0200, Matan Barak wrote: > > +static inline bool ib_is_udata_cleared(struct ib_udata *udata, > + char cleared_char, > + size_t offset, > + size_t len) > +{ > + short i; > + > + for (i = 0; i < len; i++) { You are comparing "len" which is declared as size_t which is "unsigned" int and "i" which is "short". -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html