Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751963AbcDOPP3 (ORCPT ); Fri, 15 Apr 2016 11:15:29 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:51274 "EHLO mx0a-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbcDOPP2 (ORCPT ); Fri, 15 Apr 2016 11:15:28 -0400 Authentication-Results: ppops.net; spf=none smtp.mail=ckeepax@opensource.wolfsonmicro.com Date: Fri, 15 Apr 2016 16:15:31 +0100 From: Charles Keepax To: Dan Carpenter CC: Lee Jones , , , , Mark Brown Subject: Re: [patch v2] mfd: wm8400-core: delete wm8400_reg_read() Message-ID: <20160415151531.GT31814@localhost.localdomain> References: <20160414100135.GS31814@localhost.localdomain> <20160415144418.GA8953@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160415144418.GA8953@mwanda> User-Agent: Mutt/1.5.23 (2014-03-12) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1604150215 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 400 Lines: 12 On Fri, Apr 15, 2016 at 05:44:18PM +0300, Dan Carpenter wrote: > There was a static checker warning in wm8400_reg_read() because we were > returning u16 and that can't hold the negative error codes. The > function isn't used, so let's just delete it. > > Signed-off-by: Dan Carpenter > --- Acked-by: Charles Keepax Thanks, Charles