treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / staging / rts5208 / general.c
blob0f912b011064f195203223306d04f1bf7e9a474a
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * Driver for Realtek PCI-Express card reader
5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
7 * Author:
8 * Wei WANG (wei_wang@realsil.com.cn)
9 * Micky Ching (micky_ching@realsil.com.cn)
12 #include "general.h"
14 int bit1cnt_long(u32 data)
16 int i, cnt = 0;
18 for (i = 0; i < 32; i++) {
19 if (data & 0x01)
20 cnt++;
21 data >>= 1;
23 return cnt;