diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-01-07 13:03:08 +0300 |
|---|---|---|
| committer | Tirupathi Reddy <tirupath@codeaurora.org> | 2017-07-03 22:46:21 +0530 |
| commit | af56eff0428221797f7b9d95c1e8083235210d14 (patch) | |
| tree | 049c1ec0520ab9ebbf1877249f5aea5cd85c92b2 /net/unix/af_unix.c | |
| parent | bc399a65c4e048d98b6304272e32402bfca59dda (diff) | |
regulator: core: remove some dead code
Originally queue_delayed_work() used to negative error codes or 0 and 1
on success depending if the work was queued or not. It caused a lot of
bugs where people treated all non-zero returns as failures so we changed
it to return bool instead in d4283e937861 ('workqueue: make queueing
functions return bool'). Now it never returns failure.
Checking for negative values causes a static checker warning since it is
impossible based on the bool type.
Change-Id: I49c875e09534795a8d5176773eb497f5404fcbe3
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
