Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 170029d6 authored by Jeevan Shriram's avatar Jeevan Shriram
Browse files

net: ipv4: hashtables: avoid division by zero compilation error



Since sizeof(spinlock_t) is calculated everytime and may be used as
divisor in equation, compiler throws an error division by zero. Use
a variable to store the value of sizeof(spinlock_t) and in equations.

Change-Id: I60908c71ca1fe373211f7955e75a1a5889dcf8e2
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent 4c0cc16e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment