Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: b44: Remove the unused function __b44_cam_read()

The function __b44_cam_read() is defined in the b44.c file, but not called
elsewhere, so remove this unused function.

drivers/net/ethernet/broadcom/b44.c:199:20: warning: unused function '__b44_cam_read'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3858
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230128090413.79824-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jiapeng Chong and committed by
Jakub Kicinski
1586f31e 90e8ca0a

-22
-22
drivers/net/ethernet/broadcom/b44.c
··· 196 196 return 0; 197 197 } 198 198 199 - static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index) 200 - { 201 - u32 val; 202 - 203 - bw32(bp, B44_CAM_CTRL, (CAM_CTRL_READ | 204 - (index << CAM_CTRL_INDEX_SHIFT))); 205 - 206 - b44_wait_bit(bp, B44_CAM_CTRL, CAM_CTRL_BUSY, 100, 1); 207 - 208 - val = br32(bp, B44_CAM_DATA_LO); 209 - 210 - data[2] = (val >> 24) & 0xFF; 211 - data[3] = (val >> 16) & 0xFF; 212 - data[4] = (val >> 8) & 0xFF; 213 - data[5] = (val >> 0) & 0xFF; 214 - 215 - val = br32(bp, B44_CAM_DATA_HI); 216 - 217 - data[0] = (val >> 8) & 0xFF; 218 - data[1] = (val >> 0) & 0xFF; 219 - } 220 - 221 199 static inline void __b44_cam_write(struct b44 *bp, 222 200 const unsigned char *data, int index) 223 201 {